refactor(通用功能): 去除console
This commit is contained in:
parent
bb5658bebb
commit
bebee3896d
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -99,5 +99,4 @@ export async function unmount(props) {
|
|||
* 可选生命周期钩子,仅使用 loadMicroApp 方式加载微应用时生效
|
||||
*/
|
||||
export async function update(props) {
|
||||
// console.log('update props', props);
|
||||
}
|
||||
|
|
|
@ -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)) {
|
||||
|
|
|
@ -45,7 +45,6 @@ export default {
|
|||
persist: true,
|
||||
getters: {
|
||||
currentUser(store) {
|
||||
// console.log('查询用户信息: ', store.$state);
|
||||
return store.$state
|
||||
},
|
||||
},
|
||||
|
|
|
@ -23,7 +23,6 @@ export function getCurrentUser() {
|
|||
const store = useUserStore();
|
||||
return store.currentUser;
|
||||
} catch (e) {
|
||||
console.log(e)
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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.');
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -25,9 +25,6 @@ export default {
|
|||
activated() {
|
||||
this.$refs.table.doLayout()
|
||||
},
|
||||
mounted() {
|
||||
console.log('workstation')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue