From 53b678f2ecb1e5680acab76a91043ecdb989ebe7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88?= <2960252003@qq.com> Date: Wed, 17 Jan 2024 07:46:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=8F=8F=E8=BF=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- config/vite.config.dev.ts | 10 +- index.html | 26 +- npminstall-debug.log | 195 +++++++ package.json | 6 +- src/api/interceptor.ts | 11 +- src/api/role.ts | 34 +- src/api/user.ts | 32 +- src/components/navbar/index.vue | 291 +++++------ src/locale/en-US.ts | 3 + src/locale/zh-CN.ts | 3 + src/mock/user.ts | 4 +- src/router/index.ts | 1 + src/router/routes/index.ts | 1 + src/router/routes/modules/character.ts | 28 + src/router/routes/modules/dashboard.ts | 16 +- src/store/index.ts | 3 +- src/store/modules/role/index.ts | 54 ++ src/store/modules/role/type.ts | 14 + src/store/modules/user/index.ts | 22 +- src/store/modules/user/types.ts | 5 +- src/types/global.ts | 5 +- src/views/character/manage/index.vue | 489 ++++++++++++++++++ src/views/character/manage/locale/en-US.ts | 45 ++ src/views/character/manage/locale/zh-CN.ts | 46 ++ src/views/login/components/login-form.vue | 218 ++++---- src/views/login/locale/zh-CN.ts | 2 +- .../user/info/components/user-info-header.vue | 72 +-- .../setting/components/basic-information.vue | 72 +-- .../setting/components/password-reset.vue | 110 ++-- src/views/user/setting/locale/en-US.ts | 1 + src/views/user/setting/locale/zh-CN.ts | 1 + 32 files changed, 1410 insertions(+), 414 deletions(-) create mode 100644 npminstall-debug.log create mode 100644 src/router/routes/modules/character.ts create mode 100644 src/store/modules/role/index.ts create mode 100644 src/store/modules/role/type.ts create mode 100644 src/views/character/manage/index.vue create mode 100644 src/views/character/manage/locale/en-US.ts create mode 100644 src/views/character/manage/locale/zh-CN.ts diff --git a/.env.development b/.env.development index fcd6403..ad49734 100644 --- a/.env.development +++ b/.env.development @@ -1 +1,3 @@ -VITE_API_BASE_URL= '' +VITE_API_URL= '' + + \ No newline at end of file diff --git a/config/vite.config.dev.ts b/config/vite.config.dev.ts index 5e92013..53c2923 100644 --- a/config/vite.config.dev.ts +++ b/config/vite.config.dev.ts @@ -1,7 +1,7 @@ import { mergeConfig } from 'vite'; import eslint from 'vite-plugin-eslint'; +import * as path from 'path'; import baseConfig from './vite.config.base'; -import * as path from "path"; export default mergeConfig( { @@ -11,11 +11,13 @@ export default mergeConfig( fs: { strict: true, }, - proxy:{ + proxy: { '/api': { - target: 'http://localhost:8080', + target: 'http://59.110.238.182:8081', + // target: 'http://4.246.149.244:8081', + // target: 'http://localhost:5173', changeOrigin: true, - } + }, }, }, plugins: [ diff --git a/index.html b/index.html index 46cac70..61c2883 100644 --- a/index.html +++ b/index.html @@ -1,13 +1,17 @@ -
- - - -