From 8a5a0ad3f5ad0abf894df0cdc161786fb59a1abf Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Wed, 22 Apr 2026 10:30:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20setting=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/style.css | 27 ++ src/assets/icons/ThumbEdit.svg | 5 + src/assets/images/edit.png | Bin 0 -> 928 bytes src/router/index.ts | 58 +-- src/views/setting/components/Radio.vue | 99 +++++ src/views/setting/index.vue | 512 +++++++++++++++++++++++++ 6 files changed, 679 insertions(+), 22 deletions(-) create mode 100644 src/assets/icons/ThumbEdit.svg create mode 100644 src/assets/images/edit.png create mode 100644 src/views/setting/components/Radio.vue create mode 100644 src/views/setting/index.vue diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 23afd43..e673116 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -111,3 +111,30 @@ body, background-position: 50% 50%; background-size: var(--mosaic-bg-size) var(--mosaic-bg-size); } + + +.flex{ + display: flex; +} +.flex-center{ + justify-content: center; + align-items: center; +} +.flex-1{ + flex: 1; +} +.flex-col{ + flex-direction: column; +} +.align-center{ + align-items: center; +} +.space-between{ + justify-content: space-between; +} +.justify-center{ + justify-content: center; +} +.relative{ + position: relative; +} diff --git a/src/assets/icons/ThumbEdit.svg b/src/assets/icons/ThumbEdit.svg new file mode 100644 index 0000000..75210f0 --- /dev/null +++ b/src/assets/icons/ThumbEdit.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/assets/images/edit.png b/src/assets/images/edit.png new file mode 100644 index 0000000000000000000000000000000000000000..b43c3ad577bfa9bc81dbc7f220adf7e88db89a7b GIT binary patch literal 928 zcmV;R17G}!P)746C5QKLlHU$H~45>7oPQ~GH$Y!${Td&t_x7*40+}+(V zm&+xq-|uH$uXja%w@BY;5-ZbSf&%!f*XxP3T1|!-5r@OU(&;n{hr=uS`AqPZVK6}} z1d>vz6k9A7%!*(F?RFdID#0JM<2D`WYq#5#g2A9=C7)kf=%tXpn+C!V`R68mC#lVwOtaTuTsu{eBB3{7YnezFLV-&qkqmio>1X8hBWXWVwhG1#6f_OoO(50jX$B{Btq0MGfzP`P^ zWw5i^Y;@tAk%8AXI)tb=Sn^hZX0us&DFH(v0f62m0_x~~Fi?o-(gTklP?5d@#WKRE z0!IbI1PF5S9A|}Y=y1PWE}0ooibJ7LILdXv@n5IYk>9u8Dx&0)e1pdxGhhW;uh*G& zr7#AMu?pu_kx#}6uxK=e)KIE!hR4*xS)z>@6cm9*qrqCO)`{UuW9J0mEgt+A6y8ud zm5m!6J7)__fLC_A-4Ilp>zBsP38I~34)BCN-e+$_%A7M?E|*O~Rp8$Mza#JT1QS9q z=ov=zB9+WmJkA;eJSV^wQK={U{azP}vS=0x23jNZWi~pXS$jddq9>@octBCBPzYzd z;UIsH`KRhnAP^AM#RQ+aTrPL?Fv_46C?-7~k5_d09ZjIR5s;{=RQ_`#@Kb62J_`ss z0~&bIdUy>%^uxBgL3QbQl7(-T@Eiw!-pV literal 0 HcmV?d00001 diff --git a/src/router/index.ts b/src/router/index.ts index 126da21..77bf7f4 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -7,32 +7,46 @@ import { createRouter, createWebHistory } from 'vue-router' * 3. 路由的name默认是文件名,如果文件名与name不一致,通过defineOptions({ name: 'componentName' })来设置 */ const router = createRouter({ - history: createWebHistory('/'), - // history: createWebHistory(import.meta.env.VITE_APP_URL), - routes: [ - { - path: '/', - name: 'home', - component: () => import('../views/home/index.vue'), - }, - { - path: '/collectionStory', - name: 'collectionStory', - component: () => import('../views/collectionStory/index.vue'), - }, - { - path: '/:pathMatch(.*)', - name: '404', - component: () => import('../views/404.vue'), - }, - ] + history: createWebHistory('/'), + // history: createWebHistory(import.meta.env.VITE_APP_URL), + routes: [ + { + path: '/', + name: 'home', + component: () => import('../views/home/index.vue') + }, + { + path: '/collectionStory', + name: 'collectionStory', + component: () => import('../views/collectionStory/index.vue') + // { + // path: '/', + // redirect: '/welcome' + // }, + // { + // path: '/asistant', + // name: 'asistant', + // component: () => import('../views/asistant/index.vue'), + // meta: { cache: true, verify: () => VerifyIDs(2) } + }, + { + path: '/settings', + name: 'settings', + component: () => import('@/views/setting/index.vue'), + meta: { cache: true } + }, + { + path: '/:pathMatch(.*)', + name: '404', + component: () => import('../views/404.vue') + } + ] }) router.beforeEach((to, from, next) => { - next() + next() }) -router.afterEach(() => { -}) +router.afterEach(() => {}) export default router diff --git a/src/views/setting/components/Radio.vue b/src/views/setting/components/Radio.vue new file mode 100644 index 0000000..8d2376c --- /dev/null +++ b/src/views/setting/components/Radio.vue @@ -0,0 +1,99 @@ + + + + + diff --git a/src/views/setting/index.vue b/src/views/setting/index.vue new file mode 100644 index 0000000..f138b81 --- /dev/null +++ b/src/views/setting/index.vue @@ -0,0 +1,512 @@ + + + + +