feat: 工作台常用入口可批量编辑,简报改为横幅,列表补下拉刷新
各角色工作台支持批量保存常用入口和业务员看板;AI 简报改成单行横幅避免锁死滑动;仓库/提现/对账等列表统一下拉刷新,并补代付码弹窗。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -80,11 +80,16 @@ export function resolveLoggedInTarget() {
|
||||
|
||||
export function redirectIfLoggedIn() {
|
||||
const target = resolveLoggedInTarget();
|
||||
if (target && target.url) {
|
||||
uni.reLaunch({ url: target.url });
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
if (!target || !target.url) return false;
|
||||
// 启动尚未挂上页面时不要 reLaunch,否则微信会报 appLaunch with non-empty page stack
|
||||
const pages = getCurrentPages();
|
||||
if (!pages || !pages.length) return false;
|
||||
const cur = pages[pages.length - 1];
|
||||
const curPath = cur && cur.route ? '/' + cur.route : '';
|
||||
const targetPath = String(target.url).split('?')[0];
|
||||
if (curPath === targetPath) return true;
|
||||
uni.reLaunch({ url: target.url });
|
||||
return true;
|
||||
}
|
||||
|
||||
export function saveLoginSession(result) {
|
||||
|
||||
Reference in New Issue
Block a user