forked from natuka/web.puabadge.com
再次生成bug修改,提示文字修改
This commit is contained in:
1 parent
accc430153
commit
5e0ce4b4b5
3 files changed
+59
-32
No files matched your search
@@ -82,8 +82,8 @@ function getBlobBg(data) {
|
||||
}
|
||||
imgBgUrl.value = data;
|
||||
}
|
||||
const getRandomNumber = (min: number, max: number) => {
|
||||
return Math.floor(Math.random() * (max - min + 1) + min);
|
||||
const getRandomNumber = () => {
|
||||
return kindList.value.map(obj => obj.id)[Math.floor(Math.random() * kindList.value.length)];
|
||||
}
|
||||
|
||||
// 获取Pid
|
||||
@@ -94,7 +94,7 @@ const getPid = async () => {
|
||||
message: '上传中...',
|
||||
forbidClick: true,
|
||||
})
|
||||
kindId.value = checkId.value == 0 ? getRandomNumber(kindList.value[0].id, kindList.value[kindList.value.length - 1].id) : checkId.value
|
||||
kindId.value = checkId.value == 0 ? getRandomNumber() : checkId.value
|
||||
const params = {
|
||||
extend_value: isBgShow.value ? -1 : 0,
|
||||
kind_id: kindId.value,
|
||||
|
||||
Reference in new issue
Block a user