修改了api集中化 搞定了vuex

This commit is contained in:
2020-10-10 10:19:38 +08:00
parent 8bf7b662d5
commit a67333be23
7 changed files with 112 additions and 61 deletions

View File

@@ -5,6 +5,18 @@
</div> -->
<router-view/>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import store from './store';
export default defineComponent({
setup(){
if(store.state.islogin){
store.dispatch("setUserInfo");
}
}
})
</script>
<style lang="scss">
.one-line-hide {