fix auth
This commit is contained in:
1 parent
d980bfdb6a
commit
1131d03b6d
8 files changed
+51
-27
No files matched your search
@@ -8,7 +8,6 @@
|
||||
import { defineComponent } from 'vue';
|
||||
import { ElConfigProvider } from 'element-plus';
|
||||
import zhCn from 'element-plus/dist/locale/zh-cn.mjs';
|
||||
import { applicationOperator, userOperator } from './operators';
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
@@ -18,14 +17,6 @@ export default defineComponent({
|
||||
return {
|
||||
locale: zhCn
|
||||
};
|
||||
},
|
||||
async mounted() {
|
||||
const { data: user } = await userOperator.getMe();
|
||||
this.$store.dispatch('setUser', user);
|
||||
const { data: applications } = await applicationOperator.getAll({
|
||||
user_id: user.id
|
||||
});
|
||||
this.$store.dispatch('setApplications', applications);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in new issue
Block a user