Skip to content

Commit 538e1fb

Browse files
committed
chore: add comment
1 parent 1f764c3 commit 538e1fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/interceptors/route.ts

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ import { getAllNeedLoginPages, allNeedLoginPages } from '@/utils'
1010
// TODO Check
1111
const loginRoute = '/pages/login/index'
1212

13+
// https://uniapp.dcloud.net.cn/worktile/running-env.html#%E5%BC%80%E5%8F%91%E7%8E%AF%E5%A2%83%E5%92%8C%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83
14+
// 官网数说可用 process.env 判断环境, 为啥我运行报错(小程序里)(h5正常)
15+
// console.log(process.env)
16+
17+
// TODO: 通过环境区分,非硬编码
1318
const isDev = false
1419
// 黑名单登录拦截器 - (适用于大部分页面不需要登录,少部分页面需要登录)
1520
const navigateToInterceptor = {

0 commit comments

Comments
 (0)