mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-09-22 12:09:19 +08:00
转移.net core 3.1,为.NET 5做准备
This commit is contained in:
17
OpenAuth.Mvc/wwwroot/userJs/preview.js
Normal file
17
OpenAuth.Mvc/wwwroot/userJs/preview.js
Normal file
@@ -0,0 +1,17 @@
|
||||
layui.config({
|
||||
base: "/js/"
|
||||
}).use(['form','vue', 'layer', 'jquery', 'table','droptree','utils'], function () {
|
||||
var form = layui.form,
|
||||
element = layui.element,
|
||||
layer = (top == undefined || top.layer === undefined )? layui.layer : top.layer,
|
||||
$ = layui.jquery;
|
||||
var id = $.getUrlParam("id");
|
||||
$.getJSON("/forms/get?id=" + id, function (data) {
|
||||
if (data.Result.FrmType == 0) {
|
||||
$("#content").html(data.Result.Html);
|
||||
} else {
|
||||
$("#content").html("复杂表单暂时只能在<a href='http://demo.openauth.me:1803'>企业版</a>查看,开源版预计会在以后的开源版本中发布");
|
||||
}
|
||||
});
|
||||
|
||||
})
|
Reference in New Issue
Block a user