From 3d0527602664284d190f7d3e39f3dbb3ae431a39 Mon Sep 17 00:00:00 2001 From: caoyuchun <335003032@qq.com> Date: Wed, 10 Jul 2024 11:34:11 +0800 Subject: [PATCH] cyc remove log --- src/main.js | 10 +++++----- src/utils/mUtils.js | 1 - src/utils/request.js | 14 ++++++-------- src/views/Book.vue | 6 +++--- src/views/Home.vue | 2 +- vue.config.js | 11 +++++++++-- 6 files changed, 24 insertions(+), 20 deletions(-) diff --git a/src/main.js b/src/main.js index 520d433..fd82f8f 100644 --- a/src/main.js +++ b/src/main.js @@ -29,18 +29,18 @@ router.beforeEach((to,from,next)=>{ var isTrial = to.query.isTrial if (apikey){ setStore('apikey',apikey) - console.log(apikey) + // console.log(apikey) } if (userId){ setStore('userId',userId) - console.log(userId) + // console.log(userId) } if (userType){ setStore('userType',userType) - console.log(userType) + // console.log(userType) } @@ -64,8 +64,8 @@ router.beforeEach((to,from,next)=>{ return } - console.log(to) - console.log(from) + // console.log(to) + // console.log(from) next() }) diff --git a/src/utils/mUtils.js b/src/utils/mUtils.js index 5475ad4..b1adc81 100644 --- a/src/utils/mUtils.js +++ b/src/utils/mUtils.js @@ -317,7 +317,6 @@ export const processReuestData =(data)=>{ data.apikey = "HT_6d671a62c1d668161552616453"; } - console.log('apikey=='+data.apikey) // userId // let userId = getStore("userId"); diff --git a/src/utils/request.js b/src/utils/request.js index 95de5bc..64e0419 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -74,9 +74,7 @@ export default async (options = { method: "GET" }) => { let key2 = key1.join("&"); let key3 = key2 + "&" + time + "&" + "HuaTeng987!@#"; - console.log('-------------') - console.log(key3) - console.log('-------------') + // console.log(data) @@ -91,7 +89,7 @@ export default async (options = { method: "GET" }) => { data.apikey = "HT_6d671a62c1d668161552616453"; } - console.log('apikey=='+data.apikey) + // console.log('apikey=='+data.apikey) @@ -121,7 +119,7 @@ export default async (options = { method: "GET" }) => { // try { - console.log(options.url) + // console.log(options.url) const res = await axios({ @@ -133,8 +131,8 @@ export default async (options = { method: "GET" }) => { headers: myheaders, }); - console.log('1111') - console.log(options.url) + // console.log('1111') + // console.log(options.url) // code ==! 200 报错 @@ -152,7 +150,7 @@ export default async (options = { method: "GET" }) => { // } else { // console.error(`Error: Received status code ${error.response.status}`); // } - console.log(error.response) + // console.log(error.response) } else if (error.request) { // 请求已发出但没有收到响应 console.error('No response received:', error.request); diff --git a/src/views/Book.vue b/src/views/Book.vue index fd36326..5c683c0 100644 --- a/src/views/Book.vue +++ b/src/views/Book.vue @@ -154,7 +154,7 @@ export default { // resourcesList({}) - console.log(this.bookId) + // console.log(this.bookId) // var locationData = await bookApi.userAction.getReadLocation({bookId:this.bookId}) // this.location = locationData.location @@ -176,7 +176,7 @@ export default { this.basisPath = this.textBookData.basisPath this.catalogList = await bookApi.bookinfo.category({bookId:this.bookId}) - // this.looseLeafData = await bookApi.bookinfo.data({bookId:this.bookId}) + this.looseLeafData = await bookApi.bookinfo.data({bookId:this.bookId}) this.show = true this.fullscreenLoading = false @@ -185,7 +185,7 @@ export default { this.digitalTeaching = true if (this.$route.query.chapterId){ - this.chapterId = this.$route.query.chapterI + this.chapterId = this.$route.query.chapterId } }, diff --git a/src/views/Home.vue b/src/views/Home.vue index fb0738e..9b14022 100644 --- a/src/views/Home.vue +++ b/src/views/Home.vue @@ -15,7 +15,7 @@ export default { HelloWorld }, mounted(){ - console.log(111111111111111) + // console.log(111111111111111) }, methods:{ diff --git a/vue.config.js b/vue.config.js index 80a4258..72b6ad3 100644 --- a/vue.config.js +++ b/vue.config.js @@ -22,7 +22,14 @@ module.exports = { } } }, - configureWebpack: { - devtool: 'source-map' + + configureWebpack:(config)=>{ + config.devtool = 'source-map' + // config.stats = 'errors-warings' + // config.plugins.push( + // new webpack.ProgressPlugin({ + // handler:() => {}, + // }) + // ) } }