style(webui): 在 Oxfmt 中配置导入排序功能,并对全 webui 目录进行格式化
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
|
||||
import { api, setApiToken } from '@/tools/web.ts'
|
||||
import type { UserDto } from '@/types/user.ts'
|
||||
|
||||
export const useNowUser = defineStore('now-user', () => {
|
||||
const isLogin = ref(false)
|
||||
const is_login = ref(false)
|
||||
|
||||
const id = ref(0)
|
||||
const name = ref('')
|
||||
@@ -41,11 +42,11 @@ export const useNowUser = defineStore('now-user', () => {
|
||||
description.value = user.description
|
||||
is_admin.value = user.is_admin
|
||||
|
||||
isLogin.value = true
|
||||
is_login.value = true
|
||||
}
|
||||
|
||||
return {
|
||||
isLogin,
|
||||
is_login,
|
||||
id,
|
||||
name,
|
||||
display_name,
|
||||
|
||||
Reference in New Issue
Block a user