From 22932ccaf9b7ef5183fec1bc0deb8d5c37b94d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E8=BF=9B=E7=A6=84?= Date: Mon, 4 Oct 2021 03:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router.ts | 5 ++ src/static/common.less | 3 - src/views/api/Hitokoto.vue | 149 ++++++++++++++++++++++++++++++++ src/views/api/HitokotoAdd.vue | 45 ++++++++++ src/views/api/Music.vue | 58 +++++-------- src/views/system/SystemRole.vue | 2 +- src/views/tool/SqlReplace.vue | 74 ++++++++++++++++ vite.config.ts | 13 ++- 8 files changed, 309 insertions(+), 40 deletions(-) create mode 100644 src/views/api/Hitokoto.vue create mode 100644 src/views/api/HitokotoAdd.vue create mode 100644 src/views/tool/SqlReplace.vue diff --git a/src/router.ts b/src/router.ts index dcf137d..9551268 100644 --- a/src/router.ts +++ b/src/router.ts @@ -8,6 +8,8 @@ import SystemRole from './views/system/SystemRole.vue' import SystemConfig from './views/system/SystemConfig.vue' import Music from './views/api/Music.vue' +import Hitokoto from './views/api/Hitokoto.vue' +import SqlReplace from './views/tool/SqlReplace.vue' const routes: Array = [ { path: '/login', name: 'Login', component: Login }, @@ -18,6 +20,9 @@ const routes: Array = [ { path: '/system/config', name: 'SystemConfig', component: SystemConfig }, { path: '/api/music', name: 'Music', component: Music }, + { path: '/api/hitokoto', name: 'Hitokoto', component: Hitokoto }, + + { path: '/tool/sqlReplace', name: 'SqlReplace', component: SqlReplace }, ]} ] diff --git a/src/static/common.less b/src/static/common.less index 2bc2b71..5156d2c 100644 --- a/src/static/common.less +++ b/src/static/common.less @@ -46,9 +46,6 @@ html,body,#app,.layout { } .btn-container { margin-bottom: 10px; - button { - margin-right: 3px; - } .search-btn { float: right; } diff --git a/src/views/api/Hitokoto.vue b/src/views/api/Hitokoto.vue new file mode 100644 index 0000000..735510f --- /dev/null +++ b/src/views/api/Hitokoto.vue @@ -0,0 +1,149 @@ + + diff --git a/src/views/api/HitokotoAdd.vue b/src/views/api/HitokotoAdd.vue new file mode 100644 index 0000000..8e409b8 --- /dev/null +++ b/src/views/api/HitokotoAdd.vue @@ -0,0 +1,45 @@ + + \ No newline at end of file diff --git a/src/views/api/Music.vue b/src/views/api/Music.vue index c93edaf..c1ed128 100644 --- a/src/views/api/Music.vue +++ b/src/views/api/Music.vue @@ -25,7 +25,7 @@
- 播放 + 播放
搜索 重置 @@ -92,7 +92,7 @@ - + {{item.name}}