From 21cdb7a560abae34219aa8c2f16b535138df05f2 Mon Sep 17 00:00:00 2001 From: 15820893422 <1978476055@qq.com> Date: Fri, 31 May 2024 17:27:38 +0800 Subject: [PATCH] 1 --- App.vue | 12 ++++++------ mixins/history.js | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/App.vue b/App.vue index bc99901..d49baa6 100644 --- a/App.vue +++ b/App.vue @@ -117,9 +117,9 @@ if (this.$store.state.app.token) { // 浏览记录 // #ifdef H5 - history({ - page: location.pathname + location.search, - }).then(() => {}); + // history({ + // page: location.pathname + location.search, + // }).then(() => {}); //#endif }; // #ifndef H5 @@ -229,9 +229,9 @@ $route(n) { if (this.$store.state.app.token) { // 浏览记录 - history({ - page: location.pathname + location.search, - }).then(() => {}); + // history({ + // page: location.pathname + location.search, + // }).then(() => {}); } }, } diff --git a/mixins/history.js b/mixins/history.js index cc605ec..7bfdab7 100644 --- a/mixins/history.js +++ b/mixins/history.js @@ -9,9 +9,9 @@ export default { methods: { getHistory() { console.log(this.$util.getNowUrl(),'page') - history({ - page:this.$util.getNowUrl() - }).then(res=>{}) + // history({ + // page:this.$util.getNowUrl() + // }).then(res=>{}) }, } }; \ No newline at end of file