request-link.js
export function toLinkUrl(url, that, option = {
method: "route",
params: {},
query: {}
})
// that.$link.toLinkUrl(url,that,{
// method: "route",//location/open/modal
// params: {},
// query: {},
// target: null,
// args:null
// })
bs-dialog
that.$link.toLinkUrl('https://doc.rg1008.com/docs/rg_pass_api/rg_pass_api-1d2pt3mc852i0', that, {
method: "bs-dialog",
params: {},
query: {},
style: "border: none; width:calc(100vw - 60px); height: calc(100vh - 50px)",
class: "bs-root-dialog-p0",
target: null,
args: null
});
路由方式
{
enabled: false,
link: {
url: "/leave-comment/page",
option: {
deving: true,
method: "route",
params: {},
query: {}
}
},
sortId: 5,
name: "我的留言",
meta: {
imgUrl: "/images/pt/user-comment.png",
icon: "user-circle-o",
attrs: {},
},
}
弹出框+组件
{
enabled: false,
link: {
url: "component",
option: {
component:"share-main",
style: "border: none; width: 100%; height: calc(100vh - 5px)",
class: "bs-root-dialog-p0",
method: "bs-dialog", // "modal-dialog",
args: null,
params: {},
query: {}
}
},
sortId: 15,
name: "应用分享",
meta: {
imgUrl: "/images/pt/user-share.png",
class: "el-icon-share",
attrs: {},
},
},
弹出框+iframe
{
enabled: true,
link: {
url: "/page-statics/bt/user-help.html",
option: {
style: "border: none; width: 100%; height: calc(100vh - 5px)",
class: "bs-root-dialog-p0",
method: "bs-dialog", // "modal-dialog",
args: null,
params: {},
query: {}
}
},
sortId: 20,
name: "使用手册",
id: "help",
meta: {
imgUrl: "/images/pt/user-help.png",
icon: "user-circle-o",
attrs: {},
},
},
文档更新时间: 2022-09-19 09:42 作者:admin