diff --git a/frontend/src/pages/Home/Index.vue b/frontend/src/pages/Home/Index.vue index de5f2315..36a13b08 100644 --- a/frontend/src/pages/Home/Index.vue +++ b/frontend/src/pages/Home/Index.vue @@ -4,6 +4,7 @@ import api from '@/api' import type { IAlterInfo } from '@/api/info/type' import { getImageURL } from '@/utils/images' import router from '@/router' +import { useDialog } from '@/components/hooks/dialog' function job_icon(child: IAlterInfo) { return { @@ -13,7 +14,9 @@ function job_icon(child: IAlterInfo) { } export default defineComponent(async () => { - const ignores = ['empty'] + // const ignores = ['empty'] + + const { show, close, randomId } = useDialog() // 获取角色相关信息,判定是否开放 function choose_job(child: IAlterInfo) { @@ -27,7 +30,28 @@ export default defineComponent(async () => { if (child.open) { const options = child.options ?? [] if (options.length > 0) { - return + const id = randomId() + return await show({ + id, + content: '请选择职业版本', + action: () => { + return ( +