Commit 73a7876e authored by 张海枝's avatar 张海枝

feat: 配置文件修改

parent 66ac5cd0
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-cookie": "^1.1.4", "vue-cookie": "^1.1.4",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vuex": "^3.1.0",
"vuex-persistedstate": "^2.5.4" "vuex-persistedstate": "^2.5.4"
}, },
"devDependencies": { "devDependencies": {
...@@ -10558,13 +10559,9 @@ ...@@ -10558,13 +10559,9 @@
"dev": true "dev": true
}, },
"node_modules/vuex": { "node_modules/vuex": {
"version": "3.6.2", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz", "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.1.0.tgz",
"integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==", "integrity": "sha512-mdHeHT/7u4BncpUZMlxNaIdcN/HIt1GsGG5LKByArvYG/v6DvHcOxvDCts+7SRdCoIRGllK8IMZvQtQXLppDYg=="
"peer": true,
"peerDependencies": {
"vue": "^2.0.0"
}
}, },
"node_modules/vuex-persistedstate": { "node_modules/vuex-persistedstate": {
"version": "2.5.4", "version": "2.5.4",
...@@ -18954,11 +18951,9 @@ ...@@ -18954,11 +18951,9 @@
"dev": true "dev": true
}, },
"vuex": { "vuex": {
"version": "3.6.2", "version": "3.1.0",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz", "resolved": "https://registry.npmjs.org/vuex/-/vuex-3.1.0.tgz",
"integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==", "integrity": "sha512-mdHeHT/7u4BncpUZMlxNaIdcN/HIt1GsGG5LKByArvYG/v6DvHcOxvDCts+7SRdCoIRGllK8IMZvQtQXLppDYg=="
"peer": true,
"requires": {}
}, },
"vuex-persistedstate": { "vuex-persistedstate": {
"version": "2.5.4", "version": "2.5.4",
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
"vue": "^2.6.14", "vue": "^2.6.14",
"vue-cookie": "^1.1.4", "vue-cookie": "^1.1.4",
"vue-router": "^3.0.1", "vue-router": "^3.0.1",
"vuex": "^3.1.0",
"vuex-persistedstate": "^2.5.4" "vuex-persistedstate": "^2.5.4"
}, },
"devDependencies": { "devDependencies": {
......
...@@ -15,9 +15,9 @@ export default new Router({ ...@@ -15,9 +15,9 @@ export default new Router({
}, },
}, },
{ {
path: '/test', path: '/set-token',
name: 'test', name: 'setToken',
component: () => import('@/pages/test'), component: () => import('@/pages/set-token'),
meta: { meta: {
standalone: true, standalone: true,
}, },
......
...@@ -16,4 +16,20 @@ module.exports = defineConfig({ ...@@ -16,4 +16,20 @@ module.exports = defineConfig({
}, },
}, },
}, },
publicPath: `/subapp/smartguider/`,
assetsDir: 'assets',
productionSourceMap: false,
devServer: {
open: true,//自动打开浏览器
proxy: {
'/api': {
target: 'https://xiaodian-dev.miyatech.com/api',//'https://sample.zwjk.com/sdo/api/advice',//'http://testvideos.zwjk.com/advice/',
secure: false, // 如果是https接口,需要配置这个参数
changeOrigin: true, // 如果接口跨域,需要进行这个参数配置
pathRewrite: { '^/api': '' },
}
},
port: 8080,
},
outputDir: 'dist'
}) })
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment