update import

This commit is contained in:
AceDataCloud committed 2023-01-25 16:16:34 +08:00
1 parent c9010effbb
commit 88e87ef747
4 files changed
+6 -3

No files matched your search

+3
View File
@@ -17,6 +17,9 @@ export default defineComponent({
return {
locale: zhCn
};
},
mounted() {
this.$store.dispatch('getMe');
}
});
</script>
+1 -1
View File
@@ -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
View File
@@ -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';
+1 -1
View File
@@ -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() {