uniapp微信小程序判断当前页面是否为启动页

304 阅读1分钟

获取路径栈长度为1时为启动页

computed: { isStartPage() { return getCurrentPages().length } },