jump.js
473 Bytes
import wx from '../utils/wx';
import {stringify} from '../vendors/query-string';
export default {
navigateTo(path, qs) {
return wx.navigateTo({
url: `${path}?${stringify(qs, {encode: false})}`,
});
},
redirectTo(path, qs) {
return wx.redirectTo({
url: `${path}?${stringify(qs, {encode: false})}`,
});
},
switchTab(path) {
return wx.switchTab({
url: path,
});
}
};