fix: 去除 console.log

This commit is contained in:
@changcode
2022-03-10 13:50:29 +08:00
parent ff48f86654
commit b2cf271a40
6 changed files with 1 additions and 8 deletions

View File

@@ -264,7 +264,6 @@ export default {
deep: true, deep: true,
handler (n) { handler (n) {
if (!this.isInit && this.chartOption.color) { if (!this.isInit && this.chartOption.color) {
console.log(this.chartOption)
this.colorList = this.colorList.slice(0, 20) this.colorList = this.colorList.slice(0, 20)
this.chartOption.color = this.chartOption.color.slice(0, 20) this.chartOption.color = this.chartOption.color.slice(0, 20)
this.initChart(this.chartOption) this.initChart(this.chartOption)

View File

@@ -348,7 +348,6 @@ export default {
} }
} }
} catch (e) { } catch (e) {
console.info(e)
this.loading = false this.loading = false
} }
}, },

View File

@@ -161,7 +161,7 @@ export default {
immediate: true, immediate: true,
handler (n) { handler (n) {
if (n) { if (n) {
console.log(n) // console.log(n)
} }
} }
} }

View File

@@ -115,7 +115,6 @@ export default {
if (item != '') { if (item != '') {
let expr = item let expr = item
this.matchContent && (expr = `${item} ${this.matchSymbol} "${this.matchContent}"`) this.matchContent && (expr = `${item} ${this.matchSymbol} "${this.matchContent}"`)
console.log(this.filterTime)
requestArr.push(this.$get('/logs/loki/api/v1/query_range?format=1&query=' + encodeURIComponent(expr) + '&start=' + this.$stringTimeParseToUnix(this.filterTime[0]) + '&end=' + this.$stringTimeParseToUnix(this.filterTime[1]) + '&limit=' + limit)) requestArr.push(this.$get('/logs/loki/api/v1/query_range?format=1&query=' + encodeURIComponent(expr) + '&start=' + this.$stringTimeParseToUnix(this.filterTime[0]) + '&end=' + this.$stringTimeParseToUnix(this.filterTime[1]) + '&limit=' + limit))
} }
}) })

View File

@@ -82,7 +82,6 @@ export default {
}, },
methods: { methods: {
jump (route) { jump (route) {
console.log(route, this.route)
if (route === this.route) { if (route === this.route) {
this.refresh() this.refresh()
} }

View File

@@ -15,7 +15,6 @@ router.beforeEach((to, from, next) => {
const configUrl = 'static/config.json?Timestamp=' + new Date().getTime() const configUrl = 'static/config.json?Timestamp=' + new Date().getTime()
if (to.path === '/login') { // 拦截登录页面,现货区外观设置 再系统初始化检查 if (to.path === '/login') { // 拦截登录页面,现货区外观设置 再系统初始化检查
Vue.http.get(configUrl).then(config => { Vue.http.get(configUrl).then(config => {
console.log(1)
const appearance = new Promise(resolve => { const appearance = new Promise(resolve => {
get(config.body.baseUrl + 'sys/appearance').then(res => { get(config.body.baseUrl + 'sys/appearance').then(res => {
if (res.code === 200) { if (res.code === 200) {
@@ -110,7 +109,6 @@ router.beforeEach((to, from, next) => {
store.commit('setLangList', JSON.parse(langList)) store.commit('setLangList', JSON.parse(langList))
} }
Vue.http.get(configUrl).then(config => { Vue.http.get(configUrl).then(config => {
console.log(2)
get(config.body.baseUrl + 'sys/i18n/lang').then(response => { get(config.body.baseUrl + 'sys/i18n/lang').then(response => {
if (response.code === 200) { if (response.code === 200) {
loadI18n(response.data) loadI18n(response.data)
@@ -126,7 +124,6 @@ router.beforeEach((to, from, next) => {
const permissionRequest = new Promise(resolve => { const permissionRequest = new Promise(resolve => {
if (store.getters.menuList.length === 0) { if (store.getters.menuList.length === 0) {
Vue.http.get(configUrl).then(config => { Vue.http.get(configUrl).then(config => {
console.log(3)
post(config.body.baseUrl + 'sys/user/permissions', { token: localStorage.getItem('nz-token') }).then(res => { post(config.body.baseUrl + 'sys/user/permissions', { token: localStorage.getItem('nz-token') }).then(res => {
if (res.code === 200) { if (res.code === 200) {
store.commit('setMenuList', sortByOrderNum(res.data.menus)) store.commit('setMenuList', sortByOrderNum(res.data.menus))