This commit is contained in:
faiz 2024-05-31 17:27:38 +08:00
parent dc68db9a45
commit 21cdb7a560
2 changed files with 9 additions and 9 deletions

12
App.vue
View File

@ -117,9 +117,9 @@
if (this.$store.state.app.token) { if (this.$store.state.app.token) {
// //
// #ifdef H5 // #ifdef H5
history({ // history({
page: location.pathname + location.search, // page: location.pathname + location.search,
}).then(() => {}); // }).then(() => {});
//#endif //#endif
}; };
// #ifndef H5 // #ifndef H5
@ -229,9 +229,9 @@
$route(n) { $route(n) {
if (this.$store.state.app.token) { if (this.$store.state.app.token) {
// //
history({ // history({
page: location.pathname + location.search, // page: location.pathname + location.search,
}).then(() => {}); // }).then(() => {});
} }
}, },
} }

View File

@ -9,9 +9,9 @@ export default {
methods: { methods: {
getHistory() { getHistory() {
console.log(this.$util.getNowUrl(),'page') console.log(this.$util.getNowUrl(),'page')
history({ // history({
page:this.$util.getNowUrl() // page:this.$util.getNowUrl()
}).then(res=>{}) // }).then(res=>{})
}, },
} }
}; };