From 1372c49559034802b21c1d478d3c553ceba543f7 Mon Sep 17 00:00:00 2001 From: liuyalei Date: Fri, 8 Dec 2023 09:27:57 +0800 Subject: [PATCH 1/5] gx --- src/App.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index 3f52a5d..46136f9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -15,7 +15,6 @@ const route = useRoute() let routePath = ref(route.path) const router = useRouter() let bt_data = reactive([{ btname: '优惠服务', imgurl: s1, simgurl: sl1, path: '/' }, { btname: '生活助手', imgurl: s2, simgurl: sl2, path: '/chat' }, { btname: '智能优推', imgurl: s3, simgurl: sl3, path: '/znyt' }, { btname: '大众点评', imgurl: s4, simgurl: sl4, path: '/comment' }]) - let selctdeNum = ref(0) let clickNum = (num, path) => { selctdeNum.value = num From 8b352ad764113c293b21675602d46438f368276d Mon Sep 17 00:00:00 2001 From: liuyalei Date: Fri, 8 Dec 2023 09:44:23 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=94=B9=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vite.config.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/vite.config.js b/vite.config.js index ff41eb2..c128126 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,19 +1,19 @@ -import { fileURLToPath, URL } from 'node:url' +import { fileURLToPath, URL } from "node:url"; -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' +import { defineConfig } from "vite"; +import vue from "@vitejs/plugin-vue"; // https://vitejs.dev/config/ export default defineConfig({ - server: { // ← ← ← ← ← ← - host: '0.0.0.0' // ← 新增内容 ← + server: { + // ← ← ← ← ← ← + host: "0.0.0.0", // ← 新增内容 ← }, - plugins: [ - vue(), - ], + base: "./", //生产环境路径 + plugins: [vue()], resolve: { alias: { - '@': fileURLToPath(new URL('./src', import.meta.url)) - } - } -}) + "@": fileURLToPath(new URL("./src", import.meta.url)), + }, + }, +}); From 6d314a2b4ab77f8fb942cd1bf924af6e7d6d0887 Mon Sep 17 00:00:00 2001 From: liuyalei Date: Fri, 8 Dec 2023 09:57:26 +0800 Subject: [PATCH 3/5] add --- index.html | 2 +- src/router/index.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index d179578..570f490 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Vite App + 优享地图 diff --git a/src/router/index.js b/src/router/index.js index 67afa1d..1a10575 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -1,8 +1,8 @@ -import { createRouter, createWebHistory } from 'vue-router' +import { createRouter, createWebHashHistory } from 'vue-router' import HomeView from '../views/HomeView.vue' const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHashHistory(import.meta.env.BASE_URL), routes: [ { path: '/', From 6941c1e8ba2680ec637db000a641dd80ee5b68f3 Mon Sep 17 00:00:00 2001 From: yaoyuhao Date: Fri, 8 Dec 2023 09:59:17 +0800 Subject: [PATCH 4/5] 1 --- src/views/znyt.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/znyt.vue b/src/views/znyt.vue index 18063d1..22e0fee 100644 --- a/src/views/znyt.vue +++ b/src/views/znyt.vue @@ -56,6 +56,8 @@ import { ref, reactive } from "vue"; import listRightImg from "@/components/list-right-img.vue"; import listNoImg from "@/components/list-no-img.vue"; +import j1 from "../assets/cc4.png"; +import j2 from "../assets/cc3.png"; const topContent = reactive([ { content: "2024年养老金发放政策:工龄30年内统一发放3200元,可行吗?", @@ -106,7 +108,7 @@ const records = reactive({ display: 1, title: "“三问”个人养老金:是什么、怎么缴、如何领?", createdAt: "11月27日", - imgUrl: "/src/assets/cc4.png", + imgUrl: j1, eye: "8888", }, { @@ -114,7 +116,7 @@ const records = reactive({ display: 1, title: "100场社区活动——教你轻松玩转智能手机", createdAt: "11月27日", - imgUrl: "/src/assets/cc3.png", + imgUrl: j2, eye: "8888", }, { @@ -129,7 +131,7 @@ const records = reactive({ display: 1, title: "100场社区活动——教你轻松玩转智能手机", createdAt: "11月27日", - imgUrl: "/src/assets/cc3.png", + imgUrl: j1, eye: "8888", }, { From 59a76b1a5111fff10bcdc91477943dbc91e40c6d Mon Sep 17 00:00:00 2001 From: liuyalei Date: Fri, 8 Dec 2023 10:01:02 +0800 Subject: [PATCH 5/5] add --- src/views/test.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/views/test.vue b/src/views/test.vue index cbea56b..3b75784 100644 --- a/src/views/test.vue +++ b/src/views/test.vue @@ -23,6 +23,7 @@ messages: [ { id: 1, text: '你好', isMe: false }, { id: 2, text: 'Hi', isMe: true }, + ], }; },