refactor(通用功能): 去除console

This commit is contained in:
fit2-zhao 2022-12-14 09:30:05 +08:00 committed by fit2-zhao
parent bb5658bebb
commit bebee3896d
14 changed files with 0 additions and 36 deletions

View File

@ -86,7 +86,6 @@ export default {
this.loading = false;
this.$EventBus.$emit('API_TEST_END', this.reportId);
} catch (e) {
console.log(e); // for debug
this.websocket.close();
this.$EventBus.$emit('API_TEST_ERROR', this.reportId);
}

View File

@ -99,5 +99,4 @@ export async function unmount(props) {
* 可选生命周期钩子仅使用 loadMicroApp 方式加载微应用时生效
*/
export async function update(props) {
// console.log('update props', props);
}

View File

@ -59,7 +59,6 @@ instance.interceptors.request.use(
return config
},
error => {
console.log(error) // for debug
return Promise.reject(error)
}
)
@ -112,7 +111,6 @@ instance.interceptors.response.use(response => {
checkPermission(error.response);
msg = error.response.data.message || error.response.data;
} else {
console.log('error: ' + error) // for debug
msg = error.message;
}
if (msg && !(msg instanceof Object)) {

View File

@ -45,7 +45,6 @@ export default {
persist: true,
getters: {
currentUser(store) {
// console.log('查询用户信息: ', store.$state);
return store.$state
},
},

View File

@ -23,7 +23,6 @@ export function getCurrentUser() {
const store = useUserStore();
return store.currentUser;
} catch (e) {
console.log(e)
return {};
}
}

View File

@ -63,7 +63,6 @@ if (!window.__POWERED_BY_QIANKUN__) {
* 通常我们可以在这里做一些全局变量的初始化比如不会在 unmount 阶段被销毁的应用级别的缓存等
*/
export async function bootstrap(props) {
// console.log('vue sub app bootstrap ', props);
}
/**
@ -72,8 +71,6 @@ export async function bootstrap(props) {
export async function mount(props) {
props.onGlobalStateChange((state, prev) => {
// state: 变更后的状态; prev 变更前的状态
// console.log('state: 变更后的状态; prev 变更前的状态')
// console.log(state, prev);
});
props.setGlobalState({event: 'opendialog'});
render(props);
@ -90,5 +87,4 @@ export async function unmount(props) {
* 可选生命周期钩子仅使用 loadMicroApp 方式加载微应用时生效
*/
export async function update(props) {
// console.log('update props', props);
}

View File

@ -69,7 +69,6 @@
* polyfill version of `btoa`
*/
var btoaPolyfill = function (bin) {
// console.log('polyfilled');
var u32, c0, c1, c2, asc = '';
var pad = bin.length % 3;
for (var i = 0; i < bin.length;) {
@ -197,7 +196,6 @@
* polyfill version of `atob`
*/
var atobPolyfill = function (asc) {
// console.log('polyfilled');
asc = asc.replace(/\s+/g, '');
if (!b64re.test(asc))
throw new TypeError('malformed base64.');

View File

@ -59,7 +59,6 @@ if (!window.__POWERED_BY_QIANKUN__) {
* 通常我们可以在这里做一些全局变量的初始化比如不会在 unmount 阶段被销毁的应用级别的缓存等
*/
export async function bootstrap(props) {
// console.log('vue sub app bootstrap ', props);
}
/**
@ -68,8 +67,6 @@ export async function bootstrap(props) {
export async function mount(props) {
props.onGlobalStateChange((state, prev) => {
// state: 变更后的状态; prev 变更前的状态
// console.log('state: 变更后的状态; prev 变更前的状态')
// console.log(state, prev);
});
props.setGlobalState({ event: "opendialog" });
render(props);
@ -86,5 +83,4 @@ export async function unmount(props) {
* 可选生命周期钩子仅使用 loadMicroApp 方式加载微应用时生效
*/
export async function update(props) {
// console.log('update props', props);
}

View File

@ -61,7 +61,6 @@ if (!window.__POWERED_BY_QIANKUN__) {
* 通常我们可以在这里做一些全局变量的初始化比如不会在 unmount 阶段被销毁的应用级别的缓存等
*/
export async function bootstrap(props) {
// console.log('vue sub app bootstrap ', props);
}
/**
@ -70,8 +69,6 @@ export async function bootstrap(props) {
export async function mount(props) {
props.onGlobalStateChange((state, prev) => {
// state: 变更后的状态; prev 变更前的状态
// console.log('state: 变更后的状态; prev 变更前的状态')
// console.log(state, prev);
});
props.setGlobalState({event: 'opendialog'});
render(props);
@ -88,5 +85,4 @@ export async function unmount(props) {
* 可选生命周期钩子仅使用 loadMicroApp 方式加载微应用时生效
*/
export async function update(props) {
// console.log('update props', props);
}

View File

@ -55,7 +55,6 @@ if (!window.__POWERED_BY_QIANKUN__) {
* 通常我们可以在这里做一些全局变量的初始化比如不会在 unmount 阶段被销毁的应用级别的缓存等
*/
export async function bootstrap(props) {
// console.log('vue sub app bootstrap ', props);
}
/**
@ -64,8 +63,6 @@ export async function bootstrap(props) {
export async function mount(props) {
props.onGlobalStateChange((state, prev) => {
// state: 变更后的状态; prev 变更前的状态
// console.log('state: 变更后的状态; prev 变更前的状态')
// console.log(state, prev);
});
props.setGlobalState({event: 'opendialog'});
render(props);
@ -82,5 +79,4 @@ export async function unmount(props) {
* 可选生命周期钩子仅使用 loadMicroApp 方式加载微应用时生效
*/
export async function update(props) {
// console.log('update props', props);
}

View File

@ -168,7 +168,6 @@ export default {
if (row.reportId && row.lastResult !== "Running" && row.lastResult !== "Waiting") {
this.showResponse = true;
this.reportId = row.reportId;
console.log(this.isTemplate);
}
}
})

View File

@ -73,7 +73,6 @@ if (!window.__POWERED_BY_QIANKUN__) {
* 通常我们可以在这里做一些全局变量的初始化比如不会在 unmount 阶段被销毁的应用级别的缓存等
*/
export async function bootstrap(props) {
// console.log('vue sub app bootstrap ', props);
}
/**
@ -82,8 +81,6 @@ export async function bootstrap(props) {
export async function mount(props) {
props.onGlobalStateChange((state, prev) => {
// state: 变更后的状态; prev 变更前的状态
// console.log('state: 变更后的状态; prev 变更前的状态')
// console.log(state, prev);
});
props.setGlobalState({event: 'opendialog'});
render(props);
@ -100,5 +97,4 @@ export async function unmount(props) {
* 可选生命周期钩子仅使用 loadMicroApp 方式加载微应用时生效
*/
export async function update(props) {
// console.log('update props', props);
}

View File

@ -25,9 +25,6 @@ export default {
activated() {
this.$refs.table.doLayout()
},
mounted() {
console.log('workstation')
}
}
</script>
<style scoped>

View File

@ -62,7 +62,6 @@ if (!window.__POWERED_BY_QIANKUN__) {
* 通常我们可以在这里做一些全局变量的初始化比如不会在 unmount 阶段被销毁的应用级别的缓存等
*/
export async function bootstrap(props) {
// console.log('vue sub app bootstrap ', props);
}
/**
@ -71,8 +70,6 @@ export async function bootstrap(props) {
export async function mount(props) {
props.onGlobalStateChange((state, prev) => {
// state: 变更后的状态; prev 变更前的状态
// console.log('state: 变更后的状态; prev 变更前的状态')
// console.log(state, prev);
});
props.setGlobalState({event: 'opendialog'});
render(props);
@ -89,5 +86,4 @@ export async function unmount(props) {
* 可选生命周期钩子仅使用 loadMicroApp 方式加载微应用时生效
*/
export async function update(props) {
// console.log('update props', props);
}