feat: 迁移项目到 yjyf-app 目录并更新首页路由配置
这个提交包含在:
@@ -128,7 +128,7 @@ const sql = (s) => execFileSync('ssh', ['-o', 'BatchMode=yes', 'root@8.137.181.6
|
||||
|
||||
sec('切回业主身份');
|
||||
r = await api('/auth/switchRole', { method: 'POST', token: token, data: { role: 'user' } });
|
||||
chk(r.code === 1 && r.data.redirect === '/YJYF/YJYF', '切回业主成功', r.data && r.data.redirect);
|
||||
chk(r.code === 1 && r.data.redirect === '/pages/index/index', '切回业主成功', r.data && r.data.redirect);
|
||||
r = await api('/auth/switchRole', { method: 'POST', token: token, data: { role: 'xxx' } });
|
||||
chk(r.code !== 1, '非法角色参数被拦截', r.msg);
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户