lrf402788946 5 năm trước cách đây
mục cha
commit
e7ab527640
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/views/loading.vue

+ 1 - 1
src/views/loading.vue

@@ -58,7 +58,7 @@ export default {
       let site = sessionStorage.getItem('site');
       if (!site) {
         let result = await this.getSite({ type: 'search' });
-        if (result.data === null) {
+        if (!_.isObject(result.data)) {
           this.$router.push('/fail');
         } else {
           sessionStorage.setItem('site', JSON.stringify(result.data));