From 1af94094f96f7160662e204f165f4da06f6cba36 Mon Sep 17 00:00:00 2001 From: H0nGzA1 <2505811377@qq.com> Date: Mon, 27 Feb 2023 09:08:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(1-5):=20=F0=9F=90=9B=20=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=B3=BB=E7=BB=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/fixtures/init_dictionary.json | 88 +++++++++---------- web/.env.production | 2 +- web/index.html | 2 +- web/src/stores/dictionary.ts | 79 ++++++++--------- web/src/stores/themeConfig.ts | 2 +- web/src/views/system/login/component/scan.vue | 2 +- web/src/views/system/login/index.vue | 5 +- web/src/views/system/menu/crud.tsx | 28 ++++-- 8 files changed, 112 insertions(+), 96 deletions(-) diff --git a/backend/dvadmin/system/fixtures/init_dictionary.json b/backend/dvadmin/system/fixtures/init_dictionary.json index f4533f9..f750c40 100644 --- a/backend/dvadmin/system/fixtures/init_dictionary.json +++ b/backend/dvadmin/system/fixtures/init_dictionary.json @@ -15,7 +15,7 @@ "value": "true", "parent": 1, "type": 6, - "color": null, + "color": "success", "is_value": true, "status": true, "sort": 1, @@ -27,7 +27,7 @@ "value": "false", "parent": 1, "type": 6, - "color": null, + "color": "danger", "is_value": true, "status": true, "sort": 2, @@ -50,7 +50,7 @@ { "label": "新增", "value": "Create", - "parent": 66, + "parent": 4, "type": 0, "color": "success", "is_value": true, @@ -62,7 +62,7 @@ { "label": "编辑", "value": "Update", - "parent": 66, + "parent": 4, "type": 0, "color": "primary", "is_value": true, @@ -74,7 +74,7 @@ { "label": "删除", "value": "Delete", - "parent": 66, + "parent": 4, "type": 0, "color": "danger", "is_value": true, @@ -86,7 +86,7 @@ { "label": "详情", "value": "Retrieve", - "parent": 66, + "parent": 4, "type": 0, "color": "info", "is_value": true, @@ -98,7 +98,7 @@ { "label": "查询", "value": "Search", - "parent": 66, + "parent": 4, "type": 0, "color": "warning", "is_value": true, @@ -110,7 +110,7 @@ { "label": "保存", "value": "Save", - "parent": 66, + "parent": 4, "type": 0, "color": "success", "is_value": true, @@ -122,7 +122,7 @@ { "label": "导入", "value": "Import", - "parent": 66, + "parent": 4, "type": 0, "color": "primary", "is_value": true, @@ -134,7 +134,7 @@ { "label": "导出", "value": "Export", - "parent": 66, + "parent": 4, "type": 0, "color": "warning", "is_value": true, @@ -159,9 +159,9 @@ { "label": "启用", "value": "1", - "parent": 7, + "parent": 13, "type": 1, - "color": null, + "color": "success", "is_value": true, "status": true, "sort": 1, @@ -171,9 +171,9 @@ { "label": "禁用", "value": "0", - "parent": 7, + "parent": 13, "type": 1, - "color": null, + "color": "danger", "is_value": true, "status": true, "sort": 2, @@ -196,9 +196,9 @@ { "label": "是", "value": "true", - "parent": 5, + "parent": 16, "type": 6, - "color": null, + "color": "success", "is_value": true, "status": true, "sort": 1, @@ -208,9 +208,9 @@ { "label": "否", "value": "false", - "parent": 5, + "parent": 16, "type": 6, - "color": null, + "color": "danger", "is_value": true, "status": true, "sort": 2, @@ -233,9 +233,9 @@ { "label": "是", "value": "1", - "parent": 10, + "parent": 19, "type": 1, - "color": null, + "color": "success", "is_value": true, "status": true, "sort": 1, @@ -245,9 +245,9 @@ { "label": "否", "value": "2", - "parent": 10, + "parent": 19, "type": 1, - "color": null, + "color": "danger", "is_value": true, "status": true, "sort": 2, @@ -270,7 +270,7 @@ { "label": "后台用户", "value": "0", - "parent": 15, + "parent": 22, "type": 1, "color": null, "is_value": true, @@ -282,7 +282,7 @@ { "label": "前台用户", "value": "1", - "parent": 15, + "parent": 22, "type": 1, "color": null, "is_value": true, @@ -307,7 +307,7 @@ { "label": "text", "value": "0", - "parent": 49, + "parent": 25, "type": 1, "color": null, "is_value": true, @@ -319,7 +319,7 @@ { "label": "textarea", "value": "3", - "parent": 49, + "parent": 25, "type": 1, "color": "", "is_value": true, @@ -331,7 +331,7 @@ { "label": "number", "value": "10", - "parent": 49, + "parent": 25, "type": 1, "color": "", "is_value": true, @@ -343,7 +343,7 @@ { "label": "datetime", "value": "1", - "parent": 49, + "parent": 25, "type": 1, "color": null, "is_value": true, @@ -355,7 +355,7 @@ { "label": "date", "value": "2", - "parent": 49, + "parent": 25, "type": 1, "color": null, "is_value": true, @@ -367,7 +367,7 @@ { "label": "time", "value": "15", - "parent": 49, + "parent": 25, "type": 1, "color": "", "is_value": true, @@ -379,7 +379,7 @@ { "label": "select", "value": "4", - "parent": 49, + "parent": 25, "type": 1, "color": null, "is_value": true, @@ -391,7 +391,7 @@ { "label": "checkbox", "value": "5", - "parent": 49, + "parent": 25, "type": 1, "color": null, "is_value": true, @@ -403,7 +403,7 @@ { "label": "radio", "value": "6", - "parent": 49, + "parent": 25, "type": 1, "color": null, "is_value": true, @@ -415,7 +415,7 @@ { "label": "switch", "value": "9", - "parent": 49, + "parent": 25, "type": 1, "color": "", "is_value": true, @@ -427,7 +427,7 @@ { "label": "文件附件", "value": "8", - "parent": 49, + "parent": 25, "type": 1, "color": "", "is_value": true, @@ -439,7 +439,7 @@ { "label": "图片(单张)", "value": "7", - "parent": 49, + "parent": 25, "type": 1, "color": "", "is_value": true, @@ -451,7 +451,7 @@ { "label": "图片(多张)", "value": "12", - "parent": 49, + "parent": 25, "type": 1, "color": "", "is_value": true, @@ -463,7 +463,7 @@ { "label": "数组", "value": "11", - "parent": 49, + "parent": 25, "type": 1, "color": "", "is_value": true, @@ -475,7 +475,7 @@ { "label": "关联表", "value": "13", - "parent": 49, + "parent": 25, "type": 1, "color": "", "is_value": true, @@ -487,7 +487,7 @@ { "label": "关联表(多选)", "value": "14", - "parent": 49, + "parent": 25, "type": 1, "color": "", "is_value": true, @@ -512,7 +512,7 @@ { "label": "未知", "value": "0", - "parent": 18, + "parent": 42, "type": 1, "color": null, "is_value": true, @@ -524,7 +524,7 @@ { "label": "男", "value": "1", - "parent": 18, + "parent": 42, "type": 1, "color": null, "is_value": true, @@ -536,7 +536,7 @@ { "label": "女", "value": "2", - "parent": 18, + "parent": 42, "type": 1, "color": null, "is_value": true, @@ -547,4 +547,4 @@ } ] } -] +] \ No newline at end of file diff --git a/web/.env.production b/web/.env.production index 74257c6..70cd18d 100644 --- a/web/.env.production +++ b/web/.env.production @@ -2,7 +2,7 @@ ENV = 'production' # 线上环境接口地址 -VITE_API_URL = 'https://lyt-top.gitee.io/vue-next-admin-preview/' +VITE_API_URL = '' # 是否启用按钮权限 VITE_PM_ENABLED = true diff --git a/web/index.html b/web/index.html index 3f6f08b..2fcf37b 100644 --- a/web/index.html +++ b/web/index.html @@ -13,7 +13,7 @@ content="django-vue3-admin,基于 vue3 + CompositionAPI + typescript + vite + element plus, 是一款全栈,快速,开源的后台管理系统!" /> -