huan-jie il y a 5 ans
Parent
commit
5782422e17
1 fichiers modifiés avec 12 ajouts et 1 suppressions
  1. 12 1
      pages/company/list/_city.vue

+ 12 - 1
pages/company/list/_city.vue

@@ -91,7 +91,7 @@
         siteUrl: "",
         jobUrl:"",
         isSeoList: false,
-        currentCity: '',
+        currentCity: undefined,
       };
     },
     head() {
@@ -128,6 +128,17 @@
     },
     async asyncData({...params}) {
       console.log("*********params:", params);
+      return {
+        mobile: params.app.$deviceType.isMobile(),
+        cityList: [],
+        companyList: [],
+        page: {
+          current: 1,
+          pageSize: 20,
+          total: 100
+        },
+        currentCity: undefined
+      }
       try {
         params.store.commit("updateNoneCommonFooter", false);
       } catch (e) {