guifei zhu
2024-11-27 6017f46b762663b9393cdae8422e0de1ed3db218
pages/login/login.vue
@@ -59,9 +59,33 @@
         if (account) {
            this.model = account
         }
         let _that = this
         // uni-app客户端获取push客户端标记
         // uni.getPushClientId({
         //    success: (res) => {
         //       let push_clientid = res.cid
         //       _that.model.username  = push_clientid
         //       console.log('客户端推送标识:', push_clientid)
         //    },
         //    fail(err) {
         //       _that.model.username  = err
         //       console.log(err)
         //    }
         // })
         // uni.onPushMessage((res) => {
         //    _that.model.username  = JSON.stringify(res)
         //    console.log("收到推送消息:", res) //监听推送消息
         // })
      },
      computed: {
         cid() {
            return this.$store.getters.getCid; // 使用 getter 获取 cid
         },
      },
      methods: {
       
         forget() {
@@ -101,6 +125,7 @@
                  uni.setStorageSync('token', res.result.token);
             
                  uni.switchTab({
                     url: '/pages/tabBar/general'
                  })