我的档案查看完成
This commit is contained in:
@@ -8,10 +8,12 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import store from './store';
|
||||
import { getValue } from './utils/common';
|
||||
|
||||
export default defineComponent({
|
||||
setup(){
|
||||
if(store.state.islogin){
|
||||
if(getValue('token')){
|
||||
store.commit("login")
|
||||
store.dispatch("setUserInfo");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user