This commit is contained in:
chenyang
2022-07-09 11:45:27 +08:00
parent 3441e59a76
commit bd3fae8bb7
2 changed files with 20 additions and 8 deletions
+14 -1
View File
@@ -61,6 +61,10 @@
async: false
});
},
/**获得源页面*/
get_src_page: function () {
return $('#src_page').html()
},
/**获得导图*/
fetch_mind: function (current_page, page_size) {
const me = this
@@ -71,6 +75,11 @@
page_size = me.default_page_size
}
me.current_page_num = current_page
// 获得跳转源页面
const src_page = me.get_src_page()
console.log(src_page)
$.ajax({
type: `get`,
url: `list?page=${current_page}&page_size=${page_size}`,
@@ -389,7 +398,11 @@
<!--script end-->
</head>
<body>
<span id="uid" style="display: none;">{{ user.id }}</span>
<div style="display: none;">
<span id="uid">{{ user.id }}</span>
<span id="src_page">{{ page }}</span>
</div>
<!-- 页眉 start-->
<nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
<a class="navbar-brand col-md-2 col-lg-2 mr-0 px-3" href="#">协作思维导图</a>