Explorar el Código

Merge pull request #2182 from zhaolion/main

feat:  EditTokenModal 中针对用户创建的 token 默认无限额度
Seefs hace 4 meses
padre
commit
f8f5d26600
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      web/src/components/table/tokens/modals/EditTokenModal.jsx

+ 2 - 2
web/src/components/table/tokens/modals/EditTokenModal.jsx

@@ -66,9 +66,9 @@ const EditTokenModal = (props) => {
 
   const getInitValues = () => ({
     name: '',
-    remain_quota: 500000,
+    remain_quota: 0,
     expired_time: -1,
-    unlimited_quota: false,
+    unlimited_quota: true,
     model_limits_enabled: false,
     model_limits: [],
     allow_ips: '',