Commit 313d5501 by zhouqian

pageID获取时data为null获取不到pageId

parent 7bbbce61
......@@ -88,8 +88,8 @@ export default class Api
if (typeof data === "function") {
data = await data()
}
let curPid = data.pageId || "";
let prePid = data.prePageId || "";
let curPid = data?data.pageId:""|| "";
let prePid = data?data.prePageId:"" || "";
//设置PAGEID
headers["CUR-PID"] = curPid;
headers["PRE-PID"] = prePid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment