Commit 0c2f4ecc authored by Liang Ding's avatar Liang Ding

🎨 静态站点生成自动记录最近生成的网址

parent ec7ef602
This diff is collapsed.
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* *
* @author <a href="http://vanessa.b3log.org">Liyuan Li</a> * @author <a href="http://vanessa.b3log.org">Liyuan Li</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a> * @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.0.0.1, Jan 14, 2020 * @version 1.0.0.2, Feb 29, 2020
*/ */
/* staticsite 相关操作 */ /* staticsite 相关操作 */
...@@ -30,6 +30,11 @@ admin.staticsite = { ...@@ -30,6 +30,11 @@ admin.staticsite = {
*/ */
init: function () { init: function () {
$('#loadMsg').text('') $('#loadMsg').text('')
const ssgURL = window.localStorage.getItem("solo_ssgurl")
if (ssgURL) {
$('#siteURL').val(ssgURL)
}
}, },
/* /*
* @description 更新 * @description 更新
...@@ -50,6 +55,9 @@ admin.staticsite = { ...@@ -50,6 +55,9 @@ admin.staticsite = {
success: function (result) { success: function (result) {
$('#tipMsg').text(result.msg) $('#tipMsg').text(result.msg)
$('#loadMsg').text('') $('#loadMsg').text('')
console.log(requestJSONObject.url)
window.localStorage.setItem("solo_ssgurl", requestJSONObject.url)
}, },
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment