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

feat: 配置文件修改

parent 66ac5cd0
......@@ -16,7 +16,7 @@ module.exports = {
//在rules中添加自定义规则
//关闭组件命名规则
"vue/multi-word-component-names": "off",
"vue/no-unused-components": "off",
"vue/no-unused-components": "off",
"no-unused-vars":'off'
},
overrides: [
......
......@@ -16,6 +16,7 @@
"vue": "^2.6.14",
"vue-cookie": "^1.1.4",
"vue-router": "^3.0.1",
"vuex": "^3.1.0",
"vuex-persistedstate": "^2.5.4"
},
"devDependencies": {
......@@ -10558,13 +10559,9 @@
"dev": true
},
"node_modules/vuex": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz",
"integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==",
"peer": true,
"peerDependencies": {
"vue": "^2.0.0"
}
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.1.0.tgz",
"integrity": "sha512-mdHeHT/7u4BncpUZMlxNaIdcN/HIt1GsGG5LKByArvYG/v6DvHcOxvDCts+7SRdCoIRGllK8IMZvQtQXLppDYg=="
},
"node_modules/vuex-persistedstate": {
"version": "2.5.4",
......@@ -18954,11 +18951,9 @@
"dev": true
},
"vuex": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.6.2.tgz",
"integrity": "sha512-ETW44IqCgBpVomy520DT5jf8n0zoCac+sxWnn+hMe/CzaSejb/eVw2YToiXYX+Ex/AuHHia28vWTq4goAexFbw==",
"peer": true,
"requires": {}
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/vuex/-/vuex-3.1.0.tgz",
"integrity": "sha512-mdHeHT/7u4BncpUZMlxNaIdcN/HIt1GsGG5LKByArvYG/v6DvHcOxvDCts+7SRdCoIRGllK8IMZvQtQXLppDYg=="
},
"vuex-persistedstate": {
"version": "2.5.4",
......
......@@ -16,6 +16,7 @@
"vue": "^2.6.14",
"vue-cookie": "^1.1.4",
"vue-router": "^3.0.1",
"vuex": "^3.1.0",
"vuex-persistedstate": "^2.5.4"
},
"devDependencies": {
......
......@@ -15,13 +15,13 @@ export default new Router({
},
},
{
path: '/test',
name: 'test',
component: () => import('@/pages/test'),
path: '/set-token',
name: 'setToken',
component: () => import('@/pages/set-token'),
meta: {
standalone: true,
},
},
},
...routerConfig,
],
});
......@@ -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