1234567891011121314151617181920212223242526272829 |
- <template>
- <div id="app">
- <router-view />
- </div>
- </template>
- <script>
- export default {
- name: "App",
- data() {
- return {
- isDesktop: false,
- };
- },
- created() {
- this.$store.dispatch("getCommonBaseHomeList");
- if (!this.$store.state.isDesktop) {
- this.$request.getWeAppLink().then((res) => {
- res.msg && (window.location.href = res.msg);
- });
- }
- },
- };
- </script>
- <style>
- #app {
- }
- </style>
|