diff --git a/src/main.js b/src/main.js index 92dd211..5db88b9 100644 --- a/src/main.js +++ b/src/main.js @@ -2,6 +2,7 @@ import { createApp } from 'vue' import router from './router/index' import { createPinia } from 'pinia' + import App from './App.vue' import { Button, Tab, Tabs, Form, Field, CellGroup, Cell, RadioGroup, Radio, Uploader, Icon, Popup, Loading, Overlay, Empty, List, Picker } from 'vant'; import IconComponent from '@/components/Icon.vue' @@ -13,6 +14,10 @@ import 'vant/lib/index.css'; import './assets/style/style.scss' import './assets/style/vant.scss' +// import VConsole from 'vconsole'; +// +// const vConsole = new VConsole(); + const app = createApp(App) .use(router) .use(createPinia()) @@ -35,4 +40,4 @@ const app = createApp(App) .use(Picker) .component('Icon', IconComponent) .component('Loading', LoadingComponent); -app.mount('#app') \ No newline at end of file +app.mount('#app') diff --git a/src/store/wx.js b/src/store/wx.js index 163eb62..af74260 100644 --- a/src/store/wx.js +++ b/src/store/wx.js @@ -11,7 +11,7 @@ const WxStore = defineStore( initSign() { const _this = this; return new Promise((resolve, reject) => { - const url = window.location.href.split("?")[0]; + const url = window.location.href; wxSign(url).then((data) => { wx.config({ // debug: true, // 开启调试模式 diff --git a/src/views/Home.vue b/src/views/Home.vue index db4c0a4..260db00 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -1,46 +1,47 @@ \ No newline at end of file + diff --git a/src/views/mail/components/Write.vue b/src/views/mail/components/Write.vue index 41e7f09..6079b87 100644 --- a/src/views/mail/components/Write.vue +++ b/src/views/mail/components/Write.vue @@ -1,236 +1,238 @@ \ No newline at end of file + diff --git a/vite.config.js b/vite.config.js index e6bd3f7..212a009 100644 --- a/vite.config.js +++ b/vite.config.js @@ -38,5 +38,18 @@ export default defineConfig({ rewrite: (p) => p.replace(/^\/api/, '') } } + }, + build: { + rollupOptions: { + output: { + entryFileNames: `assets/[name].${new Date().getTime()}.js`, + chunkFileNames: `assets/[name].${new Date().getTime()}.js`, + assetFileNames: `assets/[name].${new Date().getTime()}.[ext]`, + compact: true, + manualChunks: { + vue: ['vue'] + }, + } + } } })