增强配置向导功能

This commit is contained in:
jxxghp
2025-09-11 08:31:13 +08:00
parent 3d6a176cde
commit 27582004da
4 changed files with 90 additions and 18 deletions

View File

@@ -32,6 +32,7 @@ export interface WizardData {
name: string
config: any
sync_libraries: any[]
switchs: any[]
}
notification: {
type: string
@@ -110,6 +111,7 @@ const wizardData = ref<WizardData>({
name: '',
config: {},
sync_libraries: [],
switchs: [],
},
notification: {
type: '',
@@ -410,6 +412,7 @@ export function useSetupWizard() {
// 根据通知类型验证必输项
const config = wizardData.value.notification.config || {}
alert(wizardData.value.notification.type)
switch (wizardData.value.notification.type) {
case 'wechat':
if (!config.WECHAT_CORPID?.trim()) {