Skip to content

Commit c796607

Browse files
committed
fix: 修复前端报错的缺陷
--bug=1048335 --user=王孝刚 【系统设置】扫描登录页面弹出错误信息:Missing parameters https://www.tapd.cn/57709429/s/1601519
1 parent 7e45cd5 commit c796607

File tree

4 files changed

+23
-20
lines changed

4 files changed

+23
-20
lines changed

ui/src/locales/lang/zh_CN/views/application-overview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
embedThirdParty: '嵌入第三方',
1212
accessRestrictions: '访问限制',
1313
displaySetting: '显示设置',
14-
apiAccessCredentials: 'API访问凭据',
14+
apiAccessCredentials: 'API 访问凭据',
1515
apiKey: 'API Key',
1616
refreshToken: {
1717
msgConfirm1: '是否重新生成公开访问链接?',

ui/src/views/application-overview/component/XPackDisplaySettingDialog.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
action="#"
172172
:auto-upload="false"
173173
:show-file-list="false"
174-
accept="image/*"
174+
accept="image/jpeg, image/png, image/gif"
175175
:on-change="(file: any, fileList: any) => onChange(file, fileList, 'user_avatar')"
176176
>
177177
<el-button size="small"> 替换 </el-button>
@@ -190,7 +190,7 @@
190190
action="#"
191191
:auto-upload="false"
192192
:show-file-list="false"
193-
accept="image/*"
193+
accept="image/jpeg, image/png, image/gif"
194194
:on-change="(file: any, fileList: any) => onChange(file, fileList, 'avatar')"
195195
>
196196
<el-button size="small"> 替换 </el-button>
@@ -208,7 +208,7 @@
208208
action="#"
209209
:auto-upload="false"
210210
:show-file-list="false"
211-
accept="image/*"
211+
accept="image/jpeg, image/png, image/gif"
212212
:on-change="(file: any, fileList: any) => onChange(file, fileList, 'float_icon')"
213213
>
214214
<el-button size="small"> 替换 </el-button>

ui/src/views/login/components/dingtalkQrCode.vue

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<script lang="ts" setup>
1212
import { useRouter } from 'vue-router'
1313
import { useScriptTag } from '@vueuse/core'
14-
import { defineProps, onMounted, ref } from 'vue'
14+
import { defineProps, ref, watch } from 'vue'
1515
import useStore from '@/stores'
1616
import { MsgError } from '@/utils/message'
1717
@@ -121,13 +121,16 @@ const initActive = async () => {
121121
}
122122
}
123123
124-
onMounted(() => {
125-
// Simulate config loading completion
126-
setTimeout(() => {
127-
isConfigReady.value = true
128-
initActive()
129-
}, 1000)
130-
})
124+
watch(
125+
() => props.config,
126+
(newConfig) => {
127+
if (newConfig.app_secret && newConfig.app_key && newConfig.crop_id) {
128+
isConfigReady.value = true
129+
initActive()
130+
}
131+
},
132+
{ immediate: true }
133+
)
131134
</script>
132135

133136
<style lang="scss">

ui/src/views/theme/index.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
action="#"
4444
:auto-upload="false"
4545
:show-file-list="false"
46-
accept="image/*"
46+
accept="image/jpeg, image/png, image/gif"
4747
:on-change="
4848
(file: any, fileList: any) => onChange(file, fileList, 'icon')
4949
"
@@ -52,8 +52,8 @@
5252
</el-upload>
5353
</div>
5454
<el-text type="info" size="small"
55-
>顶部网站显示的 Logo,建议尺寸 48*48,支持 JPG、PNG、SVG,大小不超过
56-
200KB</el-text
55+
>顶部网站显示的 Logo,建议尺寸 48*48,支持 JPG、PNG、GIF,大小不超过 10
56+
MB</el-text
5757
>
5858
</el-card>
5959
<el-card shadow="never" class="mb-8">
@@ -64,7 +64,7 @@
6464
action="#"
6565
:auto-upload="false"
6666
:show-file-list="false"
67-
accept="image/*"
67+
accept="image/jpeg, image/png, image/gif"
6868
:on-change="
6969
(file: any, fileList: any) => onChange(file, fileList, 'loginLogo')
7070
"
@@ -73,8 +73,8 @@
7373
</el-upload>
7474
</div>
7575
<el-text type="info" size="small"
76-
>登录页面右侧 Logo,建议尺寸 204*52,支持 JPG、PNG、SVG,大小不超过
77-
200KB</el-text
76+
>登录页面右侧 Logo,建议尺寸 204*52,支持 JPG、PNG、GIF,大小不超过 10
77+
MB</el-text
7878
>
7979
</el-card>
8080
<el-card shadow="never" class="mb-8">
@@ -85,7 +85,7 @@
8585
action="#"
8686
:auto-upload="false"
8787
:show-file-list="false"
88-
accept="image/*"
88+
accept="image/jpeg, image/png, image/gif"
8989
:on-change="
9090
(file: any, fileList: any) => onChange(file, fileList, 'loginImage')
9191
"
@@ -95,7 +95,7 @@
9595
</div>
9696
<el-text type="info" size="small">
9797
左侧背景图,矢量图建议尺寸 576*900,位图建议尺寸 1152*1800;支持
98-
JPG、PNG、SVG,大小不超过 5M
98+
JPG、PNG、GIF,大小不超过 10 MB
9999
</el-text>
100100
</el-card>
101101

0 commit comments

Comments
 (0)