From 19df478f636e102c9d7f748fb92131297d162383 Mon Sep 17 00:00:00 2001 From: Kane Wang Date: Fri, 3 Mar 2023 16:08:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=A7=8B=E8=AE=BE=E8=AE=A1=E4=B8=9A?= =?UTF-8?q?=E7=BB=A9=E7=BB=84=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../task_schedule/src/assets/css/index.scss | 2 +- code/web/task_schedule/src/main.js | 4 +- code/web/task_schedule/src/router/index.js | 12 ++- code/web/task_schedule/src/style.css | 4 +- code/web/task_schedule/src/utils/account.ts | 4 +- .../src/views/DesktopArchievement.vue | 44 ++++++++++ code/web/task_schedule/src/views/Login.vue | 22 +++-- code/web/task_schedule/tsconfig.json | 13 +-- code/web/task_schedule/vite.config.js | 9 +- code/测试/code_test/.eslintrc.js | 1 - code/测试/code_test/package-lock.json | 87 +++++++++++++++++++ code/测试/code_test/package.json | 43 +++++---- .../测试/code_test/src/utils/api/request.ts | 18 ++++ code/测试/code_test/tsconfig.json | 6 ++ 14 files changed, 226 insertions(+), 43 deletions(-) create mode 100644 code/web/task_schedule/src/views/DesktopArchievement.vue create mode 100644 code/测试/code_test/src/utils/api/request.ts diff --git a/code/web/task_schedule/src/assets/css/index.scss b/code/web/task_schedule/src/assets/css/index.scss index a2e8285..a889442 100644 --- a/code/web/task_schedule/src/assets/css/index.scss +++ b/code/web/task_schedule/src/assets/css/index.scss @@ -10,4 +10,4 @@ @import url("./public/reset.scss"); @import url("./public/normalize.scss"); @import url("../font/fonts.css"); -@import url("./public/color.scss"); \ No newline at end of file +// @import url("./public/color.scss"); \ No newline at end of file diff --git a/code/web/task_schedule/src/main.js b/code/web/task_schedule/src/main.js index 5c9faa9..c0b7bd0 100644 --- a/code/web/task_schedule/src/main.js +++ b/code/web/task_schedule/src/main.js @@ -2,14 +2,14 @@ * @Author: Kane * @Date: 2023-02-15 09:25:52 * @LastEditors: Kane - * @LastEditTime: 2023-03-03 09:58:49 + * @LastEditTime: 2023-03-03 15:50:08 * @FilePath: /task_schedule/src/main.js * @Description: * * Copyright (c) ${2022} by Kane, All Rights Reserved. */ import { createApp } from 'vue'; -import { router } from "./router/index.js"; +import { router } from "./router/index"; import store from "@/store/index"; import App from './App.vue'; diff --git a/code/web/task_schedule/src/router/index.js b/code/web/task_schedule/src/router/index.js index cf17b41..408996f 100644 --- a/code/web/task_schedule/src/router/index.js +++ b/code/web/task_schedule/src/router/index.js @@ -29,6 +29,12 @@ const routes = [ hidden: true, component: () => import("@/views/Public.vue"), }, + { + path: "/desktop_archievement", + name: "DesktopArchievement", + hidden: true, + component: () => import("@/views/DesktopArchievement.vue"), + }, ]; const router = createRouter( @@ -39,9 +45,9 @@ const router = createRouter( ); //路由守卫 -router.beforeEach((to) => -{ +// router.beforeEach((to) => +// { -}); +// }); export { router }; \ No newline at end of file diff --git a/code/web/task_schedule/src/style.css b/code/web/task_schedule/src/style.css index 03e0759..2ae04a9 100644 --- a/code/web/task_schedule/src/style.css +++ b/code/web/task_schedule/src/style.css @@ -1,9 +1,7 @@ html { - background-image: url("./assets/img/bg/bg_01.jpg"); + background-image: url("@/assets/img/bg/bg_01.jpg"); background-attachment: fixed; background-size: contain; - /* background-position: center; */ - /* background-repeat: no-repeat; */ } body { diff --git a/code/web/task_schedule/src/utils/account.ts b/code/web/task_schedule/src/utils/account.ts index 685e05e..8159abb 100644 --- a/code/web/task_schedule/src/utils/account.ts +++ b/code/web/task_schedule/src/utils/account.ts @@ -8,8 +8,8 @@ * Copyright (c) ${2022} by Kane, All Rights Reserved. */ -import { service as instance } from "@/utils/api/request"; -import { API_URL } from "@/utils/api/config"; +import { service as instance } from "./api/request"; +import { API_URL } from "./api/config"; interface LoginInfo { p13account: string; diff --git a/code/web/task_schedule/src/views/DesktopArchievement.vue b/code/web/task_schedule/src/views/DesktopArchievement.vue new file mode 100644 index 0000000..9d45487 --- /dev/null +++ b/code/web/task_schedule/src/views/DesktopArchievement.vue @@ -0,0 +1,44 @@ + + + + + + + \ No newline at end of file diff --git a/code/web/task_schedule/src/views/Login.vue b/code/web/task_schedule/src/views/Login.vue index 33aca23..d7d204d 100644 --- a/code/web/task_schedule/src/views/Login.vue +++ b/code/web/task_schedule/src/views/Login.vue @@ -36,7 +36,8 @@