fix: 修复前端报错的缺陷
--bug=1048335 --user=王孝刚 【系统设置】扫描登录页面弹出错误信息:Missing parameters https://www.tapd.cn/57709429/s/1601519
This commit is contained in:
parent
7e45cd54d2
commit
c79660747a
@ -11,7 +11,7 @@ export default {
|
|||||||
embedThirdParty: '嵌入第三方',
|
embedThirdParty: '嵌入第三方',
|
||||||
accessRestrictions: '访问限制',
|
accessRestrictions: '访问限制',
|
||||||
displaySetting: '显示设置',
|
displaySetting: '显示设置',
|
||||||
apiAccessCredentials: 'API访问凭据',
|
apiAccessCredentials: 'API 访问凭据',
|
||||||
apiKey: 'API Key',
|
apiKey: 'API Key',
|
||||||
refreshToken: {
|
refreshToken: {
|
||||||
msgConfirm1: '是否重新生成公开访问链接?',
|
msgConfirm1: '是否重新生成公开访问链接?',
|
||||||
|
|||||||
@ -171,7 +171,7 @@
|
|||||||
action="#"
|
action="#"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
accept="image/*"
|
accept="image/jpeg, image/png, image/gif"
|
||||||
:on-change="(file: any, fileList: any) => onChange(file, fileList, 'user_avatar')"
|
:on-change="(file: any, fileList: any) => onChange(file, fileList, 'user_avatar')"
|
||||||
>
|
>
|
||||||
<el-button size="small"> 替换 </el-button>
|
<el-button size="small"> 替换 </el-button>
|
||||||
@ -190,7 +190,7 @@
|
|||||||
action="#"
|
action="#"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
accept="image/*"
|
accept="image/jpeg, image/png, image/gif"
|
||||||
:on-change="(file: any, fileList: any) => onChange(file, fileList, 'avatar')"
|
:on-change="(file: any, fileList: any) => onChange(file, fileList, 'avatar')"
|
||||||
>
|
>
|
||||||
<el-button size="small"> 替换 </el-button>
|
<el-button size="small"> 替换 </el-button>
|
||||||
@ -208,7 +208,7 @@
|
|||||||
action="#"
|
action="#"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
accept="image/*"
|
accept="image/jpeg, image/png, image/gif"
|
||||||
:on-change="(file: any, fileList: any) => onChange(file, fileList, 'float_icon')"
|
:on-change="(file: any, fileList: any) => onChange(file, fileList, 'float_icon')"
|
||||||
>
|
>
|
||||||
<el-button size="small"> 替换 </el-button>
|
<el-button size="small"> 替换 </el-button>
|
||||||
|
|||||||
@ -11,7 +11,7 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { useScriptTag } from '@vueuse/core'
|
import { useScriptTag } from '@vueuse/core'
|
||||||
import { defineProps, onMounted, ref } from 'vue'
|
import { defineProps, ref, watch } from 'vue'
|
||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
import { MsgError } from '@/utils/message'
|
import { MsgError } from '@/utils/message'
|
||||||
|
|
||||||
@ -121,13 +121,16 @@ const initActive = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
onMounted(() => {
|
watch(
|
||||||
// Simulate config loading completion
|
() => props.config,
|
||||||
setTimeout(() => {
|
(newConfig) => {
|
||||||
isConfigReady.value = true
|
if (newConfig.app_secret && newConfig.app_key && newConfig.crop_id) {
|
||||||
initActive()
|
isConfigReady.value = true
|
||||||
}, 1000)
|
initActive()
|
||||||
})
|
}
|
||||||
|
},
|
||||||
|
{ immediate: true }
|
||||||
|
)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|||||||
@ -43,7 +43,7 @@
|
|||||||
action="#"
|
action="#"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
accept="image/*"
|
accept="image/jpeg, image/png, image/gif"
|
||||||
:on-change="
|
:on-change="
|
||||||
(file: any, fileList: any) => onChange(file, fileList, 'icon')
|
(file: any, fileList: any) => onChange(file, fileList, 'icon')
|
||||||
"
|
"
|
||||||
@ -52,8 +52,8 @@
|
|||||||
</el-upload>
|
</el-upload>
|
||||||
</div>
|
</div>
|
||||||
<el-text type="info" size="small"
|
<el-text type="info" size="small"
|
||||||
>顶部网站显示的 Logo,建议尺寸 48*48,支持 JPG、PNG、SVG,大小不超过
|
>顶部网站显示的 Logo,建议尺寸 48*48,支持 JPG、PNG、GIF,大小不超过 10
|
||||||
200KB</el-text
|
MB</el-text
|
||||||
>
|
>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card shadow="never" class="mb-8">
|
<el-card shadow="never" class="mb-8">
|
||||||
@ -64,7 +64,7 @@
|
|||||||
action="#"
|
action="#"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
accept="image/*"
|
accept="image/jpeg, image/png, image/gif"
|
||||||
:on-change="
|
:on-change="
|
||||||
(file: any, fileList: any) => onChange(file, fileList, 'loginLogo')
|
(file: any, fileList: any) => onChange(file, fileList, 'loginLogo')
|
||||||
"
|
"
|
||||||
@ -73,8 +73,8 @@
|
|||||||
</el-upload>
|
</el-upload>
|
||||||
</div>
|
</div>
|
||||||
<el-text type="info" size="small"
|
<el-text type="info" size="small"
|
||||||
>登录页面右侧 Logo,建议尺寸 204*52,支持 JPG、PNG、SVG,大小不超过
|
>登录页面右侧 Logo,建议尺寸 204*52,支持 JPG、PNG、GIF,大小不超过 10
|
||||||
200KB</el-text
|
MB</el-text
|
||||||
>
|
>
|
||||||
</el-card>
|
</el-card>
|
||||||
<el-card shadow="never" class="mb-8">
|
<el-card shadow="never" class="mb-8">
|
||||||
@ -85,7 +85,7 @@
|
|||||||
action="#"
|
action="#"
|
||||||
:auto-upload="false"
|
:auto-upload="false"
|
||||||
:show-file-list="false"
|
:show-file-list="false"
|
||||||
accept="image/*"
|
accept="image/jpeg, image/png, image/gif"
|
||||||
:on-change="
|
:on-change="
|
||||||
(file: any, fileList: any) => onChange(file, fileList, 'loginImage')
|
(file: any, fileList: any) => onChange(file, fileList, 'loginImage')
|
||||||
"
|
"
|
||||||
@ -95,7 +95,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<el-text type="info" size="small">
|
<el-text type="info" size="small">
|
||||||
左侧背景图,矢量图建议尺寸 576*900,位图建议尺寸 1152*1800;支持
|
左侧背景图,矢量图建议尺寸 576*900,位图建议尺寸 1152*1800;支持
|
||||||
JPG、PNG、SVG,大小不超过 5M
|
JPG、PNG、GIF,大小不超过 10 MB
|
||||||
</el-text>
|
</el-text>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user