完成验证码及登录功能

This commit is contained in:
橙子
2023-02-04 18:06:42 +08:00
parent cfd25b0a8d
commit b01d242cbc
276 changed files with 24201 additions and 22 deletions

29
Yi.RuoYi.Vue3/src/App.vue Normal file
View File

@@ -0,0 +1,29 @@
<template>
<router-view />
</template>
<script setup>
import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme'
import useUserStore from '@/store/modules/user'
import { storeToRefs } from 'pinia';
import signalR from '@/utils/signalR'
const {token}=storeToRefs(useUserStore());
onMounted(() => {
nextTick(() => {
// 初始化主题样式
handleThemeStyle(useSettingsStore().theme)
})
})
//这里还需要监视token的变化重新进行signalr连接
watch(()=>token.value,async (newValue,oldValue)=>{
console.log("重新连接");
// await signalR.close();
await signalR.start();
})
</script>