diff --git a/.env b/.env index 43bab3c..a6a89f0 100644 --- a/.env +++ b/.env @@ -2,4 +2,4 @@ VITE_PWD_ENC_KEY='thanks,rax4cloud' VITE_OAUTH2_PASSWORD_CLIENT='rax:rax' -VITE_RAX_BASE_URL='/api' \ No newline at end of file +VITE_RAX_BASE_URL='/api' diff --git a/node-server/core/common.js b/node-server/core/common.js index cedeae6..e7e9d8c 100644 --- a/node-server/core/common.js +++ b/node-server/core/common.js @@ -81,7 +81,7 @@ const getDatabases = () => app.post('/getdatabases', function (req, res) { // con.connect(); con.query("SHOW DATABASES", function (error, results, fields) { if (error) { - console.log(`${nowTime()} 错误:${JSON.stringify(error)}`); + // console.log(`${nowTime()} 错误:${JSON.stringify(error)}`); return res.status(500).send(error); } else { res.send(results); @@ -97,16 +97,16 @@ const mysqlQuery = (res, database, sql) => { connection(database).connect(); connection(database).query(sql, (error, results, fields) => { if (error) { - console.log(`${nowTime()} 错误:${JSON.stringify(error)}`); + // console.log(`${nowTime()} 错误:${JSON.stringify(error)}`); return res.status(500).send(error); } else { res.send(results); } connection(database).end(); }); - + } catch (error) { - console.log(error); + // console.log(error); return res.status(500).send('连接失败', error); } } @@ -123,4 +123,4 @@ export default { nowTime, dateFormater, getDatabases -}; \ No newline at end of file +}; diff --git a/src/assets/css/global.scss b/src/assets/css/global.scss index c8913c0..a3d188c 100644 --- a/src/assets/css/global.scss +++ b/src/assets/css/global.scss @@ -288,4 +288,4 @@ body { font-size: 16px !important; } } -} \ No newline at end of file +} diff --git a/src/components/import-dialog.vue b/src/components/import-dialog.vue index 889bc56..eaa58df 100644 --- a/src/components/import-dialog.vue +++ b/src/components/import-dialog.vue @@ -67,7 +67,6 @@ const importData = () => { function handleUpload(options: any) { handleHttpUploadUrl(options, props.importUrl) .then((res: any) => { - console.log(res) if (res === 'Request failed with status code 403') { ElMessage.error('上传失败,请检查权限信息') return diff --git a/src/components/user-info.vue b/src/components/user-info.vue index 72ad1c7..81849d5 100644 --- a/src/components/user-info.vue +++ b/src/components/user-info.vue @@ -13,12 +13,12 @@ diff --git a/src/views/remote-manage/part/message-item-part.vue b/src/views/remote-manage/part/message-item-part.vue index 0e2e38c..777fd08 100644 --- a/src/views/remote-manage/part/message-item-part.vue +++ b/src/views/remote-manage/part/message-item-part.vue @@ -1,8 +1,10 @@