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 f2c-ci-robot[bot]
parent 884abde6e5
commit e9f77455e9
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

@ -65,7 +65,7 @@ export function parseCustomField(data, template, rules, oldFields) {
try {
customField.value = JSON.parse(customField.value);
} catch (e) {
console.log("JSON parse custom field value error.");
console.error("JSON parse custom field value error.", e);
}
}
}