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 0000000..b43c3ad Binary files /dev/null and b/src/assets/images/edit.png differ 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 @@ + + + + +