shish 3 lat temu
rodzic
commit
6a07ca037f

+ 5 - 5
ghsApp/src/admin/notice/index.vue

@@ -28,7 +28,7 @@
 import Tabs from "@/components/plugin/tabs";
 import AppWrapperEmpty from "@/components/app-wrapper-empty";
 import { list } from "@/mixins";
-import { getNotifyList,readNotify,allReadNotify } from "@/api/notice";
+import { getNotifyList,allReadNotify } from "@/api/notice";
 export default {
     name: "index",
     components: { Tabs, AppWrapperEmpty },
@@ -70,6 +70,10 @@ export default {
             uni.stopPullDownRefresh()
         }
     },
+    onShow(){
+        this.resetList()
+        this.getNoticeList()
+    },
     methods: {
         allRead(){
             let that = this
@@ -102,10 +106,6 @@ export default {
             }
         },
         goTo(item) {
-            if(item.read == 0){
-                item.read = 1
-                readNotify({id:item.id})
-            }
             if (item.page && !this.$util.isEmpty(item.page)){
                 this.$util.pageTo({url: item.page})
             }

+ 0 - 4
ghsApp/src/api/notice/index.js

@@ -7,7 +7,3 @@ export const allReadNotify = data => {
 export const getNotifyList = data => {
 	return https.get('/notify/list', data)
 }
-
-export const readNotify = data => {
-	return https.get('/notify/read', data)
-}