1404/11/04- first

This commit is contained in:
2026-01-24 17:45:54 +03:30
commit edf1824229
554 changed files with 59581 additions and 0 deletions
+26
View File
@@ -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()
}