🎨 文章优选接口地址变更
This commit is contained in:
parent
64522861ed
commit
47d60be55f
@ -195,7 +195,7 @@ export default {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this.$store.getters.hasPermissions('blog_admin');
|
return false;
|
||||||
},
|
},
|
||||||
isAdmin() {
|
isAdmin() {
|
||||||
return this.$store.getters.hasPermissions('blog_admin');
|
return this.$store.getters.hasPermissions('blog_admin');
|
||||||
@ -329,7 +329,7 @@ export default {
|
|||||||
},
|
},
|
||||||
setPreference() {
|
setPreference() {
|
||||||
let _ts = this;
|
let _ts = this;
|
||||||
_ts.$axios.$patch("/api/article/update-perfect", {
|
_ts.$axios.$patch("/api/admin/article/update-perfect", {
|
||||||
idArticle: _ts.article.idArticle,
|
idArticle: _ts.article.idArticle,
|
||||||
articlePerfect: '1',
|
articlePerfect: '1',
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
@ -345,7 +345,7 @@ export default {
|
|||||||
},
|
},
|
||||||
cancelPreference() {
|
cancelPreference() {
|
||||||
let _ts = this;
|
let _ts = this;
|
||||||
_ts.$axios.$patch("/api/article/update-perfect", {
|
_ts.$axios.$patch("/api/admin/article/update-perfect", {
|
||||||
idArticle: _ts.article.idArticle,
|
idArticle: _ts.article.idArticle,
|
||||||
articlePerfect: '0',
|
articlePerfect: '0',
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
|
Loading…
Reference in New Issue
Block a user