From b8b2820d1a0a55a5555434a3ec95f8bbec1db06d Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期四, 14 十二月 2023 15:22:54 +0800 Subject: [PATCH] 1.飞行巡检和审核辅助页面中的对话框写成组件 2.增加了数据请求和异常分析配置参数的可视化页面 3.修改了站点输入框,使能够模糊匹配 --- src/stores/user.js | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/stores/user.js b/src/stores/user.js index 51b1b60..ac6b272 100644 --- a/src/stores/user.js +++ b/src/stores/user.js @@ -1,8 +1,9 @@ // 鍔犺浇鐘舵�佺殑閫昏緫绠$悊 import { defineStore } from 'pinia' +import { ref, computed } from 'vue' -export const useLoginUserStore = defineStore('loginUser',() => { +export const useLoginUserStore = defineStore('loginUser', () => { // 褰撳墠鐧婚檰鐨勭敤鎴峰悕 const currentLoginUser = ref('-1') // 淇敼 @@ -10,12 +11,10 @@ currentLoginUser.value = user } - - - const getUserName = computed(()=>{ - return currentLoginUser.value == '-1' ? localStorage.getItem('currentUserName'): currentLoginUser.value + const getUserName = computed(() => { + return currentLoginUser.value == '-1' + ? localStorage.getItem('currentUserName') + : currentLoginUser.value }) - return {currentLoginUser,setUser,getUserName} + return { currentLoginUser, setUser, getUserName } }) - - -- Gitblit v1.9.3