添加登录代码
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// pages/home/home.ts
|
||||
const api = require("../../api/index")
|
||||
const app = getApp<IAppOption>()
|
||||
Page({
|
||||
/**
|
||||
* 页面的初始数据
|
||||
@@ -97,6 +98,8 @@ Page({
|
||||
})
|
||||
},
|
||||
async getList() {//获取列表
|
||||
app.globalData.isLogin = api.checkLogin(1)
|
||||
// app.globalData.isLogin = login_state
|
||||
const res = await api.getWineList({
|
||||
current:1,
|
||||
size:10
|
||||
|
||||
Reference in New Issue
Block a user