|
@@ -33,10 +33,13 @@ onMounted(() => {
|
|
|
// if(env === 'development')
|
|
|
{
|
|
|
localStorage.setItem('Admin-Token', 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxIiwiZXhwIjoyMDM5Njk2ODMzfQ.Rhd38oo_S1odjg0xnT4n31cCWCAAPXGb8y_V2XcgqzQ');
|
|
|
+ setTimeout(()=> {
|
|
|
+ getUserInfo();
|
|
|
+ }, 500);
|
|
|
}
|
|
|
})
|
|
|
|
|
|
-nextTick(()=>{
|
|
|
+const getUserInfo = () => {
|
|
|
getInfo().then((res)=>{
|
|
|
const roles = res.data.roles;
|
|
|
console.log('roles', roles);
|
|
@@ -58,7 +61,7 @@ nextTick(()=>{
|
|
|
handleJump('WorkerIndex', 'worker');
|
|
|
}
|
|
|
})
|
|
|
-})
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|