chore: cleanup unnecessary console log

Signed-off-by: Ryan Wang <i@ryanc.cc>
This commit is contained in:
Ryan Wang 2022-06-14 14:17:38 +08:00 committed by 刘瑞斌
parent 3f4d2bf1c3
commit 558d2e4837
3 changed files with 1 additions and 6 deletions

View File

@ -37,8 +37,6 @@ router.beforeEach((to, from, next) => {
//解决localStorage清空cookie没失效导致的卡死问题
if (!localStorage.getItem('Admin-Token')) {
// axios.get("/signout");
// console.log("signout");
localStorage.setItem('Admin-Token', "{}");
window.location.href = "/login";
next();

View File

@ -66,9 +66,6 @@ export function diff (oldDom, newDom,oldColor,newColor) {
}
function changeStyle(diffNode,oldColor,newColor){
/*console.log("");
console.log(diffNode.oldNodeArray);
console.log(diffNode.nodeArray);*/
for (let i = 0; i < diffNode.oldNodeArray.length; i++) {
if(diffNode.oldNodeArray[i]==='comment'||diffNode.oldNodeArray[i].nodeName==="#comment"){
continue

View File

@ -71,7 +71,7 @@ export function parseCustomField(data, template, rules, oldFields) {
}
item.isEdit = true;
} catch (e) {
console.log("JSON parse custom field value error.");
console.error("JSON parse custom field value error.", e);
}
break;
}