fix: 修复全量类型检查报错

- 收敛可选配置字段并补齐默认值,消除 strict 模式报错

- 补充页面脚本类型定义,移除未使用变量与隐式 any

- 修复主题、表格、标签页等公共包类型边界
This commit is contained in:
2026-02-24 16:45:23 +08:00
parent 306b08d55a
commit 0bb4c884b0
14 changed files with 113 additions and 68 deletions

View File

@@ -8,7 +8,6 @@ import { useAppConfig } from '@easyflow/hooks';
import { $t } from '@easyflow/locales';
import { preferences } from '@easyflow/preferences';
import { api } from '#/api/request';
import { useAuthStore } from '#/store';
defineOptions({ name: 'Login' });
@@ -18,8 +17,6 @@ const authStore = useAuthStore();
const { apiURL } = useAppConfig(import.meta.env, import.meta.env.PROD);
type PlatformType = 'ding_talk' | 'wx_web';
const title = computed(() => preferences.auth.welcomeBack);
const subTitle = computed(() => preferences.auth.loginSubtitle);
const formSchema = computed((): EasyFlowFormSchema[] => {
@@ -91,14 +88,6 @@ function onSubmit(values: any) {
console.error('初始化tac失败', error);
});
}
function getAuthUrl(platform: PlatformType) {
return api.get('/thirdAuth/getAuthUrl', {
params: {
platform,
},
});
}
</script>
<template>