diff --git a/static/html/dashboard.html b/static/html/dashboard.html
index 0e3ba26..889caa1 100644
--- a/static/html/dashboard.html
+++ b/static/html/dashboard.html
@@ -178,10 +178,9 @@
data: {'id': mind_id},
dataType: "json",
success: function (resp) {
- console.log(resp)
- console.log()
const url = `jp?u=${resp.data.u}&h=${resp.data.h}`
- window.open(url)
+ $('#share_mind_modal .modal-body').html(`分享成功,请复制以下链接进行分享:
${window.location.protocol}//${window.location.host}/${url}
`)
+ $('#share_mind_modal_a').click()
},
async: false
});
@@ -358,7 +357,7 @@
$.cookie('open_aft_create', checked, {expires: 7, path: '/'});
})
- /** modal 显示完毕后事件*/
+ /** 创建导图modal 显示完毕后事件*/
$('#newMindModal').on('shown.bs.modal', function () {
const cookie_checked_ = $.cookie('open_aft_create')
$('#mindName').val('')
@@ -398,6 +397,7 @@
登录/注册
注销
+
diff --git a/static/js/mind/modal.js b/static/js/mind/modal.js
index a891656..bc1ad69 100644
--- a/static/js/mind/modal.js
+++ b/static/js/mind/modal.js
@@ -1,6 +1,6 @@
const modal = `
-
+
-
-
+
+
-
+
+
+
+
+
+
`
$('body').append($(modal))
\ No newline at end of file