Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 解决前端ts类型错误 #1176

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ui/src/views/application/component/AccessSettingDrawer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const {
params: { id }
} = route as any

const form = reactive({
const form = reactive<any>({
wechat: { app_id: '', app_secret: '', token: '', encoding_aes_key: '', callback_url: '' },
dingtalk: { client_id: '', client_secret: '', callback_url: '' },
wecom: {
Expand All @@ -115,7 +115,7 @@ const form = reactive({
feishu: { app_id: '', app_secret: '', verification_token: '', callback_url: '' }
})

const rules = reactive({
const rules = reactive<{ [propName: string]: any }>({
wechat: {
app_id: [{ required: true, message: '请输入开发者ID', trigger: 'blur' }],
app_secret: [{ required: true, message: '请输入开发者密码', trigger: 'blur' }],
Expand All @@ -140,7 +140,7 @@ const rules = reactive({
}
})

const configFields = {
const configFields: { [propName: string]: { [propName: string]: any } } = {
wechat: {
app_id: { label: '开发者ID (APP ID)', placeholder: '请输入开发者ID' },
app_secret: { label: '开发者密码 (APP Secret)', placeholder: '请输入开发者密码' },
Expand Down Expand Up @@ -199,7 +199,7 @@ const passwordVisible = reactive<Record<string, boolean>>(
)
)

const isPasswordField = (key: string) => passwordFields.has(key)
const isPasswordField = (key: any) => passwordFields.has(key)

const closeDrawer = () => {
visible.value = false
Expand Down
Loading