before里面
const cachedToken = await this.getCachedToken()
before外面
getCachedToken: async function() {
console.log('0000000000000000000000');
return "9789823687236"
}
报错:this.getCachedToken is not a function
这是什么问题,如何解决呢?
before里面
const cachedToken = await this.getCachedToken()
before外面
getCachedToken: async function() {
console.log('0000000000000000000000');
return "9789823687236"
}
报错:this.getCachedToken is not a function
这是什么问题,如何解决呢?
2***@qq.com (作者)
before可以引外面的方法进来吗
2025-07-19 03:05
DCloud_uniCloud_CRL
回复 2***@qq.com: 可以呀,require进来,在before中调用
2025-07-21 11:25