Browse Source

Merge branch 'fix_bug'

shanbinzhang 1 month ago
parent
commit
fdcc55bdfb
1 changed files with 17 additions and 1 deletions
  1. 17 1
      src/views/forexCalendar/Index.vue

+ 17 - 1
src/views/forexCalendar/Index.vue

@@ -1,6 +1,6 @@
 <script setup>
 import { useStore } from "vuex";
-import { ref, reactive, onMounted } from 'vue'
+import { ref, reactive, onMounted,onActivated } from 'vue'
 import { useRouter } from "vue-router";
 import { ElMessage,ElMessageBox } from 'element-plus'
 import moment from 'moment'
@@ -239,6 +239,22 @@ const handleApply=()=>{
 onMounted(()=>{
     monthValue.value = moment(new Date()).format('YYYY-MM')
     getPermissionList()
+
+    wx.miniProgram.postMessage({ 
+        data: {
+            title:'事件日历',
+            path:`/pages/forexCalendar/index`,
+        } 
+    })
+})
+
+onActivated(()=>{//解决从详情返回到列表 分享时还是详情问题
+    wx.miniProgram.postMessage({ 
+        data: {
+            title:'事件日历',
+            path:`/pages/forexCalendar/index`,
+        } 
+    })
 })
 </script>