提交测试版
This commit is contained in:
+1
-7
@@ -14,8 +14,6 @@
|
||||
|
||||
<script>
|
||||
import { tabbar } from '../src/router';
|
||||
import { getWechatSign } from './api';
|
||||
import { signToWechat } from './common/wechat-web';
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
@@ -32,14 +30,10 @@ export default {
|
||||
};
|
||||
},
|
||||
components: {},
|
||||
beforeCreate: () => {
|
||||
getWechatSign(location.href).then(res => {
|
||||
signToWechat(res);
|
||||
});
|
||||
},
|
||||
watch: {
|
||||
'$route': {
|
||||
handler(val) {
|
||||
document.title = val.meta.title || '自在福田'
|
||||
this.active = tabbar.map(v => v.name).indexOf(val.name).toString();
|
||||
},
|
||||
deep: true,
|
||||
|
||||
Reference in New Issue
Block a user