41 lines
769 B
Vue
41 lines
769 B
Vue
|
<template>
|
||
|
<div id="app">
|
||
|
<router-view />
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: "app",
|
||
|
data() {
|
||
|
return {};
|
||
|
},
|
||
|
watch: {},
|
||
|
created() {
|
||
|
if (location && location.hash) {
|
||
|
var hashList = location.hash.split('?');
|
||
|
if (hashList.length === 2 && hashList[0] === '#/single-login') {
|
||
|
let obj = {};
|
||
|
let reg = /([^?=&]+)=([^?=&]+)/g;
|
||
|
location.href.replace(reg, function () {
|
||
|
obj[arguments[1]] = decodeURIComponent(arguments[2])
|
||
|
});
|
||
|
this.$router.push({
|
||
|
path: 'single-login-handle',
|
||
|
query: obj
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
methods: {},
|
||
|
computed: {}
|
||
|
};
|
||
|
</script>
|
||
|
<style lang="scss" scoped>
|
||
|
#app {
|
||
|
width: 100%;
|
||
|
height: 100%;
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
</style>
|