vue请求后端数据``
xuexi 2025-09-09 18:34:59 发表在:PHP 查看数:40
 mounted() {
    this.fetchProjectList()
  },


    // 获取数据
         async fetchProjectList() {
           try {
           const data = await http.get('/q/daiban/list', 
          { user_id: uni.getStorageSync('user_id') } )
               this.tickets = data.res1
               console.log(data.res1)
              } catch (err) {
                      console.error('请求失败:', err)
              }
          },
      //获取数据结束
最近访问时间:2025-09-16 08:51:08
知识库:379条鸣谢:TAY  备案号:蜀ICP备2024090044号-2