Szx 3 years ago
parent
commit
af04fb701c
1 changed files with 13 additions and 5 deletions
  1. 13 5
      src/views/account/orangelog.vue

+ 13 - 5
src/views/account/orangelog.vue

@@ -73,6 +73,7 @@ export default defineComponent({
   },
 
   setup(props) {
+    console.log(1);
     const state = reactive({
       isShowflag: true,
       rangePick: picker,
@@ -101,11 +102,14 @@ export default defineComponent({
         state.loading = false;
       }
     };
+
+    state.list.appflag = props.Logappflag as string;
+    getLogOrangeList();
     //初始化
 
     onMounted(() => {
       // state.list.appflag = props.Logappflag as string;
-      console.log(1);
+      console.log("onMounted");
       // getLogOrangeList();
       test();
     });
@@ -166,10 +170,14 @@ export default defineComponent({
       getLogOrangeList,
     };
   },
-  mounted() {
-    this.list.appflag = this.$props.Logappflag as string;
-    this.getLogOrangeList();
-  },
+  // created() {
+  //   console.log("created");
+  //   this.list.appflag = this.$props.Logappflag as string;
+  //   this.getLogOrangeList();
+  // },
+  // mounted() {
+  //   console.log("mounted");
+  // },
 });
 </script>
 <style lang="scss" scoped>