Commit 023354bb by fukai

修改Api pageid传递

parent 92fe320f
...@@ -88,8 +88,14 @@ export default class Api ...@@ -88,8 +88,14 @@ export default class Api
if (typeof data === "function") { if (typeof data === "function") {
data = await data() data = await data()
} }
let curPid = data?data.pageId:""|| ""; let curPid = "";
let prePid = data?data.prePageId:"" || ""; let prePid = "";
if(data){
curPid = data.pageId || "";
prePid = data.prePageId || "";
}
//设置PAGEID //设置PAGEID
headers["CUR-PID"] = curPid; headers["CUR-PID"] = curPid;
headers["PRE-PID"] = prePid; 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