Browse Source

更新二维码生成数量限制,调整范围至1-10000,并同步更新相关提示信息

wuyi 1 month ago
parent
commit
01484a77d2
1 changed files with 6 additions and 6 deletions
  1. 6 6
      src/views/QrCodeManageView.vue

+ 6 - 6
src/views/QrCodeManageView.vue

@@ -258,11 +258,11 @@ const handleBatchDownload = async () => {
 
 // 生成二维码
 const handleGenerate = async () => {
-  if (generateForm.value.quantity < 1 || generateForm.value.quantity > 1000) {
+  if (generateForm.value.quantity < 1 || generateForm.value.quantity > 10000) {
     toast.add({
       severity: 'warn',
       summary: '警告',
-      detail: '生成数量必须在1-1000之间',
+      detail: '生成数量必须在1-10000之间',
       life: 3000
     })
     return
@@ -333,10 +333,10 @@ const copyToClipboard = async (text) => {
       document.body.appendChild(textArea)
       textArea.focus()
       textArea.select()
-      
+
       const successful = document.execCommand('copy')
       document.body.removeChild(textArea)
-      
+
       if (successful) {
         toast.add({
           severity: 'success',
@@ -609,8 +609,8 @@ onMounted(() => {
 
         <div class="field" style="margin-top: 10px;">
           <FloatLabel variant="on">
-            <InputNumber id="quantity" v-model="generateForm.quantity" :min="1" :max="1000" fluid />
-            <label for="quantity">生成数量 (1-1000)</label>
+            <InputNumber id="quantity" v-model="generateForm.quantity" :min="1" :max="10000" fluid />
+            <label for="quantity">生成数量 (1-10000)</label>
           </FloatLabel>
         </div>
       </div>