feat:登录相关

This commit is contained in:
fangyunong 2025-06-30 15:13:39 +08:00
parent c1c06f552c
commit f6d405dab2
5 changed files with 40 additions and 10 deletions

View File

@ -9,6 +9,7 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"@auth0/auth0-vue": "^2.4.0",
"axios": "^1.7.2", "axios": "^1.7.2",
"ftp-deploy": "^2.4.7", "ftp-deploy": "^2.4.7",
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",

25
pnpm-lock.yaml generated
View File

@ -8,6 +8,9 @@ importers:
.: .:
dependencies: dependencies:
'@auth0/auth0-vue':
specifier: ^2.4.0
version: 2.4.0(typescript@5.8.3)(vue-router@4.5.1(vue@3.5.17(typescript@5.8.3)))
axios: axios:
specifier: ^1.7.2 specifier: ^1.7.2
version: 1.10.0 version: 1.10.0
@ -79,6 +82,17 @@ packages:
'@antfu/utils@0.7.10': '@antfu/utils@0.7.10':
resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==} resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==}
'@auth0/auth0-spa-js@2.2.0':
resolution: {integrity: sha512-YaHHCxiSQxDb+Ju9gXOqcqgXWq8EkUSpZC4g24D3MoEBUaADKwOosrAnmjDZcslBZpnSFFdrl4dLYedAer3xlQ==}
'@auth0/auth0-vue@2.4.0':
resolution: {integrity: sha512-12iLvojP8Pvxqu2Abxzksp0HqlSovGiAUhWrppnOaJP02MZEBQo+c/IwM6VbM0edNk+eqqjX5u96iw5peaCPSg==}
peerDependencies:
vue-router: ^4.0.12
peerDependenciesMeta:
vue-router:
optional: true
'@babel/code-frame@7.27.1': '@babel/code-frame@7.27.1':
resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==} resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}
engines: {node: '>=6.9.0'} engines: {node: '>=6.9.0'}
@ -1257,6 +1271,17 @@ snapshots:
'@antfu/utils@0.7.10': {} '@antfu/utils@0.7.10': {}
'@auth0/auth0-spa-js@2.2.0': {}
'@auth0/auth0-vue@2.4.0(typescript@5.8.3)(vue-router@4.5.1(vue@3.5.17(typescript@5.8.3)))':
dependencies:
'@auth0/auth0-spa-js': 2.2.0
vue: 3.5.17(typescript@5.8.3)
optionalDependencies:
vue-router: 4.5.1(vue@3.5.17(typescript@5.8.3))
transitivePeerDependencies:
- typescript
'@babel/code-frame@7.27.1': '@babel/code-frame@7.27.1':
dependencies: dependencies:
'@babel/helper-validator-identifier': 7.27.1 '@babel/helper-validator-identifier': 7.27.1

View File

@ -12,12 +12,12 @@
import { type GlobalThemeOverrides, dateZhCN, zhCN } from "naive-ui"; import { type GlobalThemeOverrides, dateZhCN, zhCN } from "naive-ui";
const themeOverrides: GlobalThemeOverrides = { const themeOverrides: GlobalThemeOverrides = {
// //
common: { 'common': {
primaryColor: "#9CC9E5", 'primaryColor': '#3D8EFF', //
primaryColorHover: "#c0dff1", 'primaryColorHover': '#6AA1FF', // 20%
primaryColorPressed: "#74a6c3", 'primaryColorPressed': '#2B7AEB',// 10%
primaryColorSuppl: "#CAE5D3", 'primaryColorSuppl': '#5A95FF' // hover
} },
}; };
</script> </script>
<style scoped lang='scss'></style> <style scoped lang='scss'></style>

View File

@ -7,9 +7,10 @@ import pinia from '@/store';
//引入路由 //引入路由
import router from "@/router"; import router from "@/router";
// 引入UI组件库相关 // 引入UI组件库相关
import naive from 'naive-ui' import naive from 'naive-ui';
import 'vfonts/Lato.css'// 通用字体 import 'vfonts/Lato.css'// 通用字体
import 'vfonts/FiraCode.css'// 等宽字体 import 'vfonts/FiraCode.css'// 等宽字体
// 登录授权相关
import { createApp } from 'vue' import { createApp } from 'vue'
import App from './App.vue'; import App from './App.vue';

View File

@ -1,8 +1,11 @@
<template> <template>
<div>登录页面22222</div>
</template> </template>
<script setup lang='ts'> <script setup>
</script> </script>
<style scoped lang='scss'>
<style lang="scss" scoped>
</style> </style>