diff --git a/index.html b/index.html index dde16aa..d3af8b8 100644 --- a/index.html +++ b/index.html @@ -2,7 +2,7 @@ - + Vite + Vue + TS diff --git a/public/logo.jpg b/public/logo.jpg new file mode 100644 index 0000000..b54bdf7 Binary files /dev/null and b/public/logo.jpg differ diff --git a/src/assets/styles/variable.scss b/src/assets/styles/variable.scss index e69de29..2274898 100644 --- a/src/assets/styles/variable.scss +++ b/src/assets/styles/variable.scss @@ -0,0 +1,4 @@ +$primaryColor: #3D8EFF; // 主色保持不变的蓝色 +$primaryColorHover: #6AA1FF; // 比主色亮20%的浅蓝色 +$primaryColorPressed: #2B7AEB;// 比主色深10%的深蓝色 +$primaryColorSuppl: #5A95FF; // 介于主色和hover之间的蓝色 \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 3737375..0138fdd 100644 --- a/src/main.ts +++ b/src/main.ts @@ -2,7 +2,6 @@ import { DO_MAIN, CLIENT_ID } from "@/utils/secret"; // 样式引入 import "@/assets/styles/reset.scss"; -import "@/assets/styles/variable.scss"; import "@/assets/styles/common.scss"; // 引入仓库 import pinia from "@/store"; @@ -26,7 +25,7 @@ app.use( clientId: CLIENT_ID, authorizationParams: { redirect_uri: `${window.location.origin}/callback`, - audience: "https://dev-f8lrenkd107vqnti.us.auth0.com/api/v2", + audience: "https://AGSSadmin.ASGG.com", scope: 'read:data', // 请求用户基本信息 } }) diff --git a/src/views/login/OauthCallBack.vue b/src/views/login/OauthCallBack.vue index 5fd841b..66e2d54 100644 --- a/src/views/login/OauthCallBack.vue +++ b/src/views/login/OauthCallBack.vue @@ -1,28 +1,76 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/src/views/login/index.vue b/src/views/login/index.vue index f1b720d..81730e4 100644 --- a/src/views/login/index.vue +++ b/src/views/login/index.vue @@ -1,19 +1,294 @@ - \ No newline at end of file + diff --git a/vite.config.ts b/vite.config.ts index 92ff734..4f03269 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,6 +13,13 @@ export default defineConfig({ dirs: ["./src/api"], }) ], + css: { + preprocessorOptions: { + scss: { + additionalData: `@use "@/assets/styles/variable.scss" as *;` // 使用 @use 代替 @import + } + } + }, resolve: { alias: { "@": fileURLToPath(new URL("./src", import.meta.url)),