完成大作业部分及其打磨

This commit is contained in:
li-chx
2025-05-11 17:22:21 +08:00
parent 3ab2c26776
commit 0622b15509
23 changed files with 651 additions and 160 deletions
+8 -1
View File
@@ -8,6 +8,7 @@ export {}
declare global {
const APIResponse: typeof import('../utils/APIResponse')['APIResponse']
const APIResponseErrorException: typeof import('../utils/APIResponse')['APIResponseErrorException']
const ExampleUserInfo: typeof import('../stores/user')['ExampleUserInfo']
const PageType: typeof import('../stores/login')['PageType']
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
const createPinia: typeof import('pinia')['createPinia']
@@ -21,6 +22,7 @@ declare global {
const setActivePinia: typeof import('pinia')['setActivePinia']
const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix']
const storeToRefs: typeof import('pinia')['storeToRefs']
const useArticleStore: typeof import('../stores/articleUser')['useArticleStore']
const useLoginStore: typeof import('../stores/login')['useLoginStore']
const usePeopleStore: typeof import('../stores/people')['usePeopleStore']
const useSystemStore: typeof import('../stores/system')['useSystemStore']
@@ -29,6 +31,9 @@ declare global {
}
// for type re-export
declare global {
// @ts-ignore
export type { Article, ArticleUser } from '../stores/articleUser'
import('../stores/articleUser')
// @ts-ignore
export type { PageType, LoginStore } from '../stores/login'
import('../stores/login')
@@ -39,7 +44,7 @@ declare global {
export type { SystemStore } from '../stores/system'
import('../stores/system')
// @ts-ignore
export type { UserInfo, UserState } from '../stores/user'
export type { ExampleUserInfo, UserInfo, UserState } from '../stores/user'
import('../stores/user')
// @ts-ignore
export type { APIResponse, APIResponseErrorException, IAPIResponse } from '../utils/APIResponse'
@@ -53,6 +58,7 @@ declare module 'vue' {
interface ComponentCustomProperties {
readonly APIResponse: UnwrapRef<typeof import('../utils/APIResponse')['APIResponse']>
readonly APIResponseErrorException: UnwrapRef<typeof import('../utils/APIResponse')['APIResponseErrorException']>
readonly ExampleUserInfo: UnwrapRef<typeof import('../stores/user')['ExampleUserInfo']>
readonly PageType: UnwrapRef<typeof import('../stores/login')['PageType']>
readonly acceptHMRUpdate: UnwrapRef<typeof import('pinia')['acceptHMRUpdate']>
readonly createPinia: UnwrapRef<typeof import('pinia')['createPinia']>
@@ -66,6 +72,7 @@ declare module 'vue' {
readonly setActivePinia: UnwrapRef<typeof import('pinia')['setActivePinia']>
readonly setMapStoreSuffix: UnwrapRef<typeof import('pinia')['setMapStoreSuffix']>
readonly storeToRefs: UnwrapRef<typeof import('pinia')['storeToRefs']>
readonly useArticleStore: UnwrapRef<typeof import('../stores/articleUser')['useArticleStore']>
readonly useLoginStore: UnwrapRef<typeof import('../stores/login')['useLoginStore']>
readonly usePeopleStore: UnwrapRef<typeof import('../stores/people')['usePeopleStore']>
readonly useSystemStore: UnwrapRef<typeof import('../stores/system')['useSystemStore']>