瀏覽代碼

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)