mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2026-06-12 21:29:31 +08:00
修复:后台管理文章设置BUG;
修复:友链列表不显示数据BUG; 修复:应用设置点击返回,触发提示BUG;
This commit is contained in:
@@ -540,10 +540,10 @@ export default {
|
||||
if (this.form.id) {
|
||||
this.$Router.push({
|
||||
path: '/pagesB/articles/article-setting',
|
||||
query: { postsId: this.form.id, postTitle: this.form.title, isEdit: true, from: 'edit' }
|
||||
query: { postsId: this.form.id, postTitle: this.form.title, isEdit: 1, from: 'edit' }
|
||||
});
|
||||
} else {
|
||||
this.$Router.push({ path: '/pagesB/articles/article-setting', query: { postsId: '', postTitle: '', isEdit: false, from: 'edit' } });
|
||||
this.$Router.push({ path: '/pagesB/articles/article-setting', query: { postsId: '', postTitle: '', isEdit: 0, from: 'edit' } });
|
||||
}
|
||||
|
||||
return;
|
||||
|
||||
@@ -404,13 +404,10 @@ export default {
|
||||
const from = this.$Route.query.from;
|
||||
this.postsId = postsId;
|
||||
this.postTitle = postTitle || '';
|
||||
this.isEdit = isEdit;
|
||||
this.isEdit = isEdit == 1 ? true : false;
|
||||
this.from = from;
|
||||
this.createTime = uni.$tm.dayjs(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss');
|
||||
this.fnGetSettings();
|
||||
|
||||
console.log(uni.getStorageSync('posts-content'));
|
||||
console.log(uni.getStorageSync('posts-content-source'));
|
||||
},
|
||||
onPullDownRefresh() {
|
||||
if (this.isEdit == false) {
|
||||
@@ -591,7 +588,6 @@ export default {
|
||||
})
|
||||
.catch(err => {
|
||||
this.$tm.toast('数据加载失败,请重试!');
|
||||
console.log(err);
|
||||
this.loading = 'error';
|
||||
})
|
||||
.finally(() => {
|
||||
|
||||
@@ -306,7 +306,7 @@ export default {
|
||||
},
|
||||
// 设置文章信息
|
||||
fnOnSetArticle(article, index) {
|
||||
this.$Router.push({ path: '/pagesB/articles/article-setting', query: { postsId: article.id, postTitle: article.title, isEdit: true, from: 'list' } });
|
||||
this.$Router.push({ path: '/pagesB/articles/article-setting', query: { postsId: article.id, postTitle: article.title, isEdit: 1, from: 'list' } });
|
||||
},
|
||||
// 删除文章
|
||||
fnOnDelArticle(article, index) {
|
||||
|
||||
Reference in New Issue
Block a user