update import
This commit is contained in:
1 parent
c9010effbb
commit
88e87ef747
4 files changed
+6
-3
No files matched your search
@@ -17,6 +17,9 @@ export default defineComponent({
|
||||
return {
|
||||
locale: zhCn
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.$store.dispatch('getMe');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -108,7 +108,7 @@ export default defineComponent({
|
||||
getApplications() {
|
||||
applicationOperator
|
||||
.getAll({
|
||||
user_id: this.$store.getters.user.id
|
||||
user_id: this.$store.getters.user?.id
|
||||
})
|
||||
.then(({ data: data }: { data: IApplicationListResponse }) => {
|
||||
this.applications = data.items;
|
||||
|
||||
+1
-1
@@ -4,8 +4,8 @@ import router from './router/index';
|
||||
import store from './store/index';
|
||||
import ElementPlus from 'element-plus';
|
||||
import i18n from './i18n/index';
|
||||
import './assets/css/tailwind.css';
|
||||
import './assets/scss/style.scss';
|
||||
import './assets/css/tailwind.css';
|
||||
import dayjs from './plugins/dayjs';
|
||||
import './plugins/font-awesome';
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ export default defineComponent({
|
||||
name: 'AuthLogin',
|
||||
data(): IData {
|
||||
return {
|
||||
redirect: this.$route.query.redirect?.toString()
|
||||
redirect: this.$route.query.redirect?.toString() || '/'
|
||||
};
|
||||
},
|
||||
async mounted() {
|
||||
|
||||
Reference in new issue
Block a user