commit
This commit is contained in:
12
figma_html_page/js/generate-content.js
Normal file
12
figma_html_page/js/generate-content.js
Normal file
@@ -0,0 +1,12 @@
|
||||
function regenerate() {
|
||||
alert('正在重新生成内容...');
|
||||
}
|
||||
|
||||
function publish() {
|
||||
const isLoggedIn = localStorage.getItem('isLoggedIn');
|
||||
if (!isLoggedIn) {
|
||||
window.location.href = 'login.html';
|
||||
} else {
|
||||
alert('发布成功!');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user