From 10115a5331f4550fc381fedf84a93d18b895a363 Mon Sep 17 00:00:00 2001 From: xiangshu233 Date: Sat, 2 Mar 2024 17:54:00 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20:recycle:=20=E7=A7=BB=E9=99=A4=20vi?= =?UTF-8?q?cons=20=E4=BD=BF=E7=94=A8=20unocss=20=E7=9A=84=20icons=20preset?= =?UTF-8?q?=20=E4=BB=A5=E8=8E=B7=E5=BE=97=E7=BA=AF=20css=20icon?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +-- pnpm-lock.yaml | 10 ++++++ src/layout/index.vue | 5 +-- src/router/modules.ts | 8 ++--- src/views/dashboard/index.vue | 1 - src/views/login/ForgetPasswordForm.vue | 14 ++------ src/views/login/LoginForm.vue | 18 +++------- src/views/login/LoginTitle.vue | 4 +-- src/views/login/RegisterForm.vue | 46 ++++++-------------------- src/views/my/index.vue | 29 ++++------------ uno.config.ts | 13 +++++++- 11 files changed, 55 insertions(+), 97 deletions(-) diff --git a/package.json b/package.json index 7f554da..d665b84 100644 --- a/package.json +++ b/package.json @@ -41,9 +41,6 @@ "dependencies": { "@types/lodash-es": "^4.17.12", "@unocss/reset": "^0.58.5", - "@vicons/antd": "^0.12.0", - "@vicons/ionicons5": "^0.12.0", - "@vicons/utils": "^0.1.4", "@vueuse/core": "^10.7.0", "axios": "^1.4.0", "date-fns": "^3.0.6", @@ -61,6 +58,7 @@ "@antfu/eslint-config": "^2.6.3", "@commitlint/cli": "^18.4.3", "@commitlint/config-conventional": "^18.4.3", + "@iconify/json": "^2.2.188", "@types/fs-extra": "^11.0.4", "@types/mockjs": "^1.0.10", "@types/node": "^20.10.5", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index e5be951..4c7a776 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -67,6 +67,9 @@ devDependencies: '@commitlint/config-conventional': specifier: ^18.4.3 version: 18.4.3 + '@iconify/json': + specifier: ^2.2.188 + version: 2.2.188 '@types/fs-extra': specifier: ^11.0.4 version: 11.0.4 @@ -1292,6 +1295,13 @@ packages: resolution: {integrity: sha512-dvuCeX5fC9dXgJn9t+X5atfmgQAzUOWqS1254Gh0m6i8wKd10ebXkfNKiRK+1GWi/yTvvLDHpoxLr0xxxeslWw==} dev: true + /@iconify/json@2.2.188: + resolution: {integrity: sha512-gsJwZ60Vb5IrtjYu+Al4qMaML9ZKUnop6Gi0537ZcA6nEhe3Nb58WH4c6b1+mXOHwOkFlLA8AFBXJUHY5nKMdA==} + dependencies: + '@iconify/types': 2.0.0 + pathe: 1.1.2 + dev: true + /@iconify/types@2.0.0: resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==} dev: true diff --git a/src/layout/index.vue b/src/layout/index.vue index 63bbd3e..2bf2f53 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -23,9 +23,10 @@ :key="menu.name" replace :to="menu.path" - :icon="(menu.meta?.icon as string)" > - {{ menu.meta?.title }} + diff --git a/src/router/modules.ts b/src/router/modules.ts index e5ec1b7..6f149f3 100644 --- a/src/router/modules.ts +++ b/src/router/modules.ts @@ -10,7 +10,7 @@ const routeModuleList: Array = [ component: Layout, meta: { title: '主控台', - icon: 'wap-home', + icon: 'i-simple-icons:atlassian', }, children: [ { @@ -29,8 +29,8 @@ const routeModuleList: Array = [ redirect: '/message/index', component: Layout, meta: { - title: '消息', - icon: 'chat', + title: '图表', + icon: 'i-simple-icons:soundcharts', }, children: [ { @@ -50,7 +50,7 @@ const routeModuleList: Array = [ component: Layout, meta: { title: '我的', - icon: 'manager', + icon: 'i-simple-icons:docsify', }, children: [ { diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index f09181e..aa228e5 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -5,7 +5,6 @@
{{ title }}
-
@@ -22,9 +20,7 @@ :rules="getFormRules.mobile" > @@ -37,9 +33,7 @@ :rules="getFormRules.sms" >