From 1d5a11dc42657500e694b8944c10acb70f3e5cf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com> Date: Fri, 10 Mar 2023 11:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E9=A1=B9=E7=9B=AEtoken?= =?UTF-8?q?=E4=B8=8D=E8=AE=A1=E7=AE=97=E6=AF=94=E4=BE=8B=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E4=BC=A0=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppConfig.js | 2 +- src/forge/New/Index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AppConfig.js b/src/AppConfig.js index 9ca6363a..cf7fe8b6 100644 --- a/src/AppConfig.js +++ b/src/AppConfig.js @@ -25,7 +25,7 @@ if (isDev) { } debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' : window.location.search.indexOf('debug=s') !== -1 ? 'student' : - window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || '' + window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'admin' } window._debugType = debugType; export function initAxiosInterceptors(props) { diff --git a/src/forge/New/Index.js b/src/forge/New/Index.js index c307a8be..e45f97cc 100644 --- a/src/forge/New/Index.js +++ b/src/forge/New/Index.js @@ -220,7 +220,7 @@ class Index extends Component { user_id:owners_id, blockchain: tokenConTri, blockchain_token_all: 10000, - blockchain_init_token: blockchain_init && blockchain_init/100 + blockchain_init_token: parseInt(blockchain_init) }).then((result) => { if (result && result.data.id) { projectsType && projectsType !== "mirror" && this.props.showNotification(`项目创建成功!`);