先提交一波
This commit is contained in:
@@ -92,7 +92,6 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.search = localStorage.getItem("searchApp") || ""
|
||||
this.token = localStorage.getItem("ui-token")
|
||||
if (this.token) this.getUserInfo()
|
||||
wx = jWeixin
|
||||
},
|
||||
|
||||
@@ -21,7 +21,8 @@
|
||||
"vite-plugin-vue2": "^2.0.0",
|
||||
"vue": "^2.6.14",
|
||||
"vue-router": "^3.3.4",
|
||||
"vue-template-compiler": "^2.6.14"
|
||||
"vue-template-compiler": "^2.6.14",
|
||||
"vuex-persistedstate": "^3.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"dvcp-dv-ui": "^2.0.1",
|
||||
|
||||
@@ -6,10 +6,13 @@ export default defineConfig({
|
||||
extensions: ['.vue', '.mjs', '.js', '.ts', '.jsx', '.tsx', '.json'],
|
||||
},
|
||||
plugins: [createVuePlugin({jsx: true})],
|
||||
optimizeDeps: {
|
||||
esbuildOptions: {keepNames: true}
|
||||
},
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
port: 8666,
|
||||
open: 'index.html',
|
||||
open: true,
|
||||
proxy: {
|
||||
//设置代理,可解决跨5
|
||||
'/lan': {
|
||||
@@ -32,6 +35,9 @@ export default defineConfig({
|
||||
changeOrigin: true,
|
||||
rewrite: path => path.replace(/^\/xsjr/, '')
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
usePolling: true
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user