1404/11/04- first
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { tokenName } from '@root/config'
|
||||
export const loading = ref<boolean>(false)
|
||||
export const loadingMore = ref<boolean>(false)
|
||||
|
||||
export function getToken() {
|
||||
return localStorage.getItem(tokenName)
|
||||
}
|
||||
|
||||
export async function setToken(token: string) {
|
||||
localStorage.setItem(tokenName, token)
|
||||
}
|
||||
|
||||
export async function setMyInfo(token: string) {
|
||||
localStorage.setItem(tokenName, token)
|
||||
}
|
||||
|
||||
/*export function getMyInfo() {
|
||||
return JSON.parse(localStorage.getItem('tamin_my_info') as string)
|
||||
}*/
|
||||
|
||||
export function removeToken() {
|
||||
return localStorage.removeItem(tokenName)
|
||||
}
|
||||
export function hotSelect(e: any) {
|
||||
e.target?.select()
|
||||
}
|
||||
Reference in New Issue
Block a user