Преглед изворни кода

Merge branch '02/24resetMain' into online

mo пре 4 година
родитељ
комит
0e0ae41801
1 измењених фајлова са 4 додато и 4 уклоњено
  1. 4 4
      src/views/main/baseinfo/index.vue

+ 4 - 4
src/views/main/baseinfo/index.vue

@@ -163,13 +163,13 @@ export default {
   created() {
     this.$set(this.search, "dates", this.getInitDate());
   },
-  mounted () {
-    this.FetchDetail()
-    this.$store.dispatch('setBranchs')
+  mounted() {
+    this.FetchDetail();
+    this.$store.dispatch("setBranchs");
   },
   methods: {
     getInitDate() {
-      const end = this.$helpers.dayjs(new Date()).format("YYYY-MM-DD");
+      const end = this.$helpers.dayjs(new Date()).subtract(1,'day').format("YYYY-MM-DD");
       const start = this.$helpers
         .dayjs(new Date())
         .set("date", 1)