为toPage增加reload、back方式
This commit is contained in:
parent
1644642e54
commit
17e6f493ba
|
@ -163,6 +163,14 @@ function toPage(url, options, type) {
|
||||||
...options
|
...options
|
||||||
};
|
};
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
case "reload":
|
||||||
|
let pages = getCurrentPages();
|
||||||
|
currentPage = pages[pages.length - 1];
|
||||||
|
currentPage.onShow(currentPage.options);
|
||||||
|
break;
|
||||||
|
case "back":
|
||||||
|
uni.navigateBack({ delta: 1 });
|
||||||
|
break;
|
||||||
case "relaunch":
|
case "relaunch":
|
||||||
uni.reLaunch(params);
|
uni.reLaunch(params);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue