From 5bc9ce0118d2ee64acf0264781d10c7fd528c4e2 Mon Sep 17 00:00:00 2001 From: kami <605128600@qq.com> Date: Thu, 29 Feb 2024 13:49:30 +0800 Subject: [PATCH] =?UTF-8?q?ios=20=E8=AF=AD=E9=9F=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 7 +- src/store/wx.js | 2 +- src/views/Home.vue | 169 ++-- src/views/mail/components/Write.vue | 1101 ++++++++++++++------------- vite.config.js | 13 + 5 files changed, 674 insertions(+), 618 deletions(-) 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'] + }, + } + } } })