Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-community-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
6 years ago
Commit
5bd77ecd0d7d25ff26ceb8c6fce386b3f1ff57d3
1 parent
8342182b
fix del
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
apps/pages/article/components/article/article.vue
apps/pages/article/components/detail/more-action-sheet.vue
apps/pages/article/components/article/article.vue
View file @
5bd77ec
...
...
@@ -137,13 +137,13 @@ export default {
});
},
async onShowMore({article, index}) {
if (this.yoho && this.yoho.context.isLogin && !this._uid) {
if (this.yoho && this.yoho.context.isLogin && !this._u
serU
id) {
let user = await this.$sdk.getUser();
this._uid = user.uid;
this._u
serU
id = user.uid;
}
this.$refs.moreAction.show(article, this._uid, index);
this.$refs.moreAction.show(article, this._u
serU
id, index);
},
onDelete(index) {
this.$refs.scroll.delete(index);
...
...
apps/pages/article/components/detail/more-action-sheet.vue
View file @
5bd77ec
...
...
@@ -101,7 +101,7 @@ export default {
href: 'javascript:;'
},
onConfirm: () => {
this.deleteArticle(this._params
.articleId
).then(res => {
this.deleteArticle(this._params).then(res => {
if (res.code === 200) {
this.$emit('on-delete', this._params.articleId);
} else {
...
...
Please
register
or
login
to post a comment