diff --git a/.gitignore b/.gitignore index ceda13b..d460aab 100644 --- a/.gitignore +++ b/.gitignore @@ -54,3 +54,4 @@ automation/data/published/* !automation/data/published/.gitkeep content/published/* !content/published/.gitkeep +data/*.db diff --git a/data/yzr.db b/data/yzr.db index 70f312c..f58c887 100644 Binary files a/data/yzr.db and b/data/yzr.db differ diff --git a/platform/frontend/index.html b/platform/frontend/index.html index b52084c..7e3bc3d 100644 --- a/platform/frontend/index.html +++ b/platform/frontend/index.html @@ -162,7 +162,9 @@ } } }; - Vue.createApp(App).mount('#app'); + const app = Vue.createApp(App); + app.use(ElementPlus); + app.mount('#app'); diff --git a/platform/frontend/logs.html b/platform/frontend/logs.html index d74aab4..76323d3 100644 --- a/platform/frontend/logs.html +++ b/platform/frontend/logs.html @@ -107,7 +107,9 @@ .catch(() => { localStorage.removeItem('authToken'); window.location.href = '/'; }); } }; - Vue.createApp(LogsApp).mount('#app'); + const app = Vue.createApp(LogsApp); + app.use(ElementPlus); + app.mount('#app'); \ No newline at end of file diff --git a/platform/frontend/topics.html b/platform/frontend/topics.html index 3620870..369b88c 100644 --- a/platform/frontend/topics.html +++ b/platform/frontend/topics.html @@ -164,7 +164,7 @@ await this.fetchTopics(); } else { this.$message.info('仅待审查选题可优化'); } }, - handlePublish(topic) { this.$message.success('发布:' + topic.title); await this.fetchTopics(); }, + async handlePublish(topic) { this.$message.success('发布:' + topic.title); await this.fetchTopics(); }, deleteTopic(id) { this.$confirm('确定删除?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }) .then(async () => { this.$message.success('删除成功'); await this.fetchTopics(); }).catch(() => {}); @@ -182,7 +182,9 @@ .catch(() => { localStorage.removeItem('authToken'); window.location.href = '/'; }); } }; - Vue.createApp(TopicsApp).mount('#app'); + const app = Vue.createApp(TopicsApp); + app.use(ElementPlus); + app.mount('#app'); \ No newline at end of file diff --git a/platform/frontend/users.html b/platform/frontend/users.html index 52f82e4..eecff8d 100644 --- a/platform/frontend/users.html +++ b/platform/frontend/users.html @@ -127,7 +127,9 @@ .catch(() => { localStorage.removeItem('authToken'); window.location.href = '/'; }); } }; - Vue.createApp(UsersApp).mount('#app'); + const app = Vue.createApp(UsersApp); + app.use(ElementPlus); + app.mount('#app'); \ No newline at end of file