Commit 44709f36 by 吴娟华

'修改'

1 parent bb6247e9
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<transition name="fade"> <transition name="fade">
<keep-alive> <keep-alive>
<router-view <router-view
v-if='$route.meta.keepAlive' v-if="$route.meta.keepAlive"
v-wechat-title="$route.meta.title" v-wechat-title="$route.meta.title"
/> />
</keep-alive> </keep-alive>
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<transition name="fade"> <transition name="fade">
<router-view <router-view
v-wechat-title="$route.meta.title" v-wechat-title="$route.meta.title"
v-if='!$route.meta.keepAlive' v-if="!$route.meta.keepAlive"
/> />
</transition> </transition>
</div> </div>
...@@ -29,26 +29,30 @@ ...@@ -29,26 +29,30 @@
<script> <script>
// import VConsole from 'vconsole' // import VConsole from 'vconsole'
export default { export default {
data () { data() {
return { return {};
}
},
components: {
},
created () {
}, },
mounted () { components: {},
created() {},
mounted() {
// window.vConsole = new VConsole() // window.vConsole = new VConsole()
var isPageHide = false;
window.addEventListener("pageshow", function() {
if (isPageHide) {
window.location.reload();
}
});
window.addEventListener("pagehide", function() {
isPageHide = true;
});
}, },
methods: { methods: {},
} };
}
</script> </script>
<style scoped> <style scoped>
#app { #app {
font-size: 14px; font-size: 14px;
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -19,8 +19,8 @@ export default { ...@@ -19,8 +19,8 @@ export default {
let route = state.lastPath.replace('.', '/') let route = state.lastPath.replace('.', '/')
if (route == 'common/marketing') { if (route == 'common/marketing') {
route = '' route = ''
//history.back() history.back()
router.replace({ name: 'common.marketing' }) //router.replace({ name: 'common.marketing' })
//window.location.replace(`${window.location.href.split('?')[0]}#/${route}`) //window.location.replace(`${window.location.href.split('?')[0]}#/${route}`)
return return
} else { } else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!