先提交一波

This commit is contained in:
aixianling
2022-05-10 09:21:07 +08:00
parent 2f79210970
commit 73f300cd7a
3 changed files with 9 additions and 3 deletions

View File

@@ -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
},

View File

@@ -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",

View File

@@ -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
}
}
})