Browse Source

样式修改

master
rose 4 years ago
parent
commit
6efd3520dc
  1. 21
      src/App.vue

21
src/App.vue

@ -39,20 +39,7 @@ export default {
window.location.href = "http://www.sxgreenvalley.com/green-phone" window.location.href = "http://www.sxgreenvalley.com/green-phone"
} }
}, },
// created() {
// console.log("this._isMobile();")
// this._isMobile();
// // const userId = '1218763410024566784';
// // const params = { userId };
// // this.getUserId(params);
// // if (sessionStorage.getItem('store')) {
// // this.$store.replaceState(Object.assign({}, this.$store.state, JSON.parse(sessionStorage.getItem('store'))));
// // }
// // window.addEventListener('beforeunload', () => {
// // sessionStorage.setItem('store', JSON.stringify(this.$store.state));
// // });
// },
methods: { methods: {
@ -63,15 +50,9 @@ export default {
console.log("======>",flag) console.log("======>",flag)
let ismobile = flag ? 1 : 0 let ismobile = flag ? 1 : 0
//
//
if (ismobile == 1) { if (ismobile == 1) {
console.log("ismobile2",flag) console.log("ismobile2",flag)
// if (to.path == '/') {
// next('/home')
// } else {
// next();
// }
window.location.href = "http://www.sxgreenvalley.com/green-phone" window.location.href = "http://www.sxgreenvalley.com/green-phone"
} }

Loading…
Cancel
Save