chore: 🔨 注释文案优化

This commit is contained in:
Ray.Hao
2025-05-19 12:40:51 +08:00
parent 859f3e0cc3
commit 08a396eeb6
5 changed files with 7 additions and 7 deletions

View File

@@ -32,7 +32,7 @@ const AuthAPI = {
}); });
}, },
/** 注销登录接口 */ /** 退出登录接口 */
logout() { logout() {
return request({ return request({
url: `${AUTH_BASE_URL}/logout`, url: `${AUTH_BASE_URL}/logout`,

View File

@@ -45,7 +45,7 @@ export default {
// 导航栏国际化 // 导航栏国际化
navbar: { navbar: {
dashboard: "首页", dashboard: "首页",
logout: "注销登录", logout: "退出登录",
document: "项目文档", document: "项目文档",
gitee: "项目地址", gitee: "项目地址",
profile: "个人中心", profile: "个人中心",

View File

@@ -18,7 +18,7 @@
<NoticeDropdown /> <NoticeDropdown />
</template> </template>
<!-- 用户头像个人中心注销登录等 --> <!-- 用户头像个人中心退出登录等 -->
<el-dropdown trigger="click"> <el-dropdown trigger="click">
<div class="user-profile"> <div class="user-profile">
<img class="user-profile__avatar" :src="userStore.userInfo.avatar" /> <img class="user-profile__avatar" :src="userStore.userInfo.avatar" />
@@ -80,7 +80,7 @@ const navbarRightClass = computed(() => {
}); });
/** /**
* 注销登录 * 退出登录
*/ */
function logout() { function logout() {
ElMessageBox.confirm("确定注销并退出系统吗?", "提示", { ElMessageBox.confirm("确定注销并退出系统吗?", "提示", {

View File

@@ -9,7 +9,7 @@ import "@/styles/dark/css-vars.css";
import "@/styles/index.scss"; import "@/styles/index.scss";
import "uno.css"; import "uno.css";
// 全局引入 animate.css // 过渡动画
import "animate.css"; import "animate.css";
// 自动为某些默认事件(如 touchstart、wheel 等)添加 { passive: true },提升滚动性能并消除控制台的非被动事件监听警告 // 自动为某些默认事件(如 touchstart、wheel 等)添加 { passive: true },提升滚动性能并消除控制台的非被动事件监听警告

View File

@@ -94,9 +94,9 @@ export const useUserStore = defineStore("user", () => {
*/ */
function clearSessionAndCache() { function clearSessionAndCache() {
return new Promise<void>((resolve) => { return new Promise<void>((resolve) => {
clearToken();
usePermissionStoreHook().resetRouter();
useDictStoreHook().clearDictCache(); useDictStoreHook().clearDictCache();
usePermissionStoreHook().resetRouter();
clearToken();
userInfo.value = {} as UserInfo; userInfo.value = {} as UserInfo;
resolve(); resolve();
}); });