|
|
@@ -104,6 +104,47 @@ module.exports = {
|
|
|
src: '~plugins/jsonp.js',
|
|
|
ssr: false
|
|
|
}],
|
|
|
- /* TODO 暂时代理到商城测试版,之后再做出调整 */
|
|
|
- proxyTable: ['/api/**', '/search/**', '/user/**', '/login/**', '/register/**', '/logout/**', '/static/**', '/vendor**', '/user**', '/trade/**', '/recommendation/**', '/store-service/**', '/basic/**', '/logout**', '/operation/**', '/help**', '/product**', '/store**', '/order/proxy**', '/report/**', '/store/**#/**', '/kdn/**', '/product/**Submit', '/admin**', '/product/**Submit/**', '/release/**', '/auth/store/**', '/produce/**', '/file**', '/rate/**', '/log/**', '/help-service/**', '/keyword/**', '/tip/**', '/UASBatchPutOnProperty**', '/UASBatchPutOnProperty/**']
|
|
|
+ // proxyTable: ['/api/**', '/search/**', '/user/**', '/login/**', '/register/**', '/logout/**', '/static/**', '/vendor**', '/user**', '/trade/**', '/recommendation/**', '/store-service/**', '/basic/**', '/logout**', '/operation/**', '/help**', '/product**', '/store**', '/order/proxy**', '/report/**', '/store/**#/**', '/kdn/**', '/product/**Submit', '/admin**', '/product/**Submit/**', '/release/**', '/auth/store/**', '/produce/**', '/file**', '/rate/**', '/log/**', '/help-service/**', '/keyword/**', '/tip/**', '/UASBatchPutOnProperty**', '/UASBatchPutOnProperty/**']
|
|
|
+ /**
|
|
|
+ * http-proxy configuration example: {
|
|
|
+ * '/api/order/**': 'https://api-order.example.com',
|
|
|
+ * '/api/product/**': 'https://api-product.example.com'
|
|
|
+ * }
|
|
|
+ */
|
|
|
+ proxyTable: {
|
|
|
+ '/api/**': baseUrl,
|
|
|
+ '/search/**': baseUrl,
|
|
|
+ '/user/**': baseUrl,
|
|
|
+ '/user**': baseUrl,
|
|
|
+ '/login/**': baseUrl,
|
|
|
+ '/register/**': baseUrl,
|
|
|
+ '/logout/**': baseUrl,
|
|
|
+ '/static/**': baseUrl,
|
|
|
+ '/vendor**': baseUrl,
|
|
|
+ '/trade/**': baseUrl,
|
|
|
+ '/recommendation/**': baseUrl,
|
|
|
+ '/store-service/**': baseUrl,
|
|
|
+ '/basic/**': baseUrl,
|
|
|
+ '/logout**': baseUrl,
|
|
|
+ '/operation/**': baseUrl,
|
|
|
+ '/help**': baseUrl,
|
|
|
+ '/product**': baseUrl,
|
|
|
+ '/store**': baseUrl,
|
|
|
+ '/order/proxy**': baseUrl,
|
|
|
+ '/report/**': baseUrl,
|
|
|
+ '/store/**#/**': baseUrl,
|
|
|
+ '/kdn/**': baseUrl,
|
|
|
+ '/product/**Submit': baseUrl,
|
|
|
+ '/admin**': baseUrl,
|
|
|
+ '/product/**Submit/**': baseUrl,
|
|
|
+ '/release/**': baseUrl,
|
|
|
+ '/auth/store/**': baseUrl,
|
|
|
+ '/produce/**': baseUrl,
|
|
|
+ '/file**': baseUrl,
|
|
|
+ '/rate/**': baseUrl,
|
|
|
+ '/log/**': baseUrl,
|
|
|
+ '/help-service/**': baseUrl,
|
|
|
+ '/keyword/**': baseUrl,
|
|
|
+ '/tip/**': baseUrl
|
|
|
+ }
|
|
|
}
|