DESKTOP-SVI9JE1\muzen 1 ano atrás
pai
commit
fab0ed5565
1 arquivos alterados com 4 adições e 4 exclusões
  1. 4 4
      src/pages/content/index.vue

+ 4 - 4
src/pages/content/index.vue

@@ -51,14 +51,14 @@ export default {
     }
   },
   onLoad(e) {
-    if (e.id) {
-      this.getDetail(e.id)
+    if (e.articleId) {
+      this.getDetail(e.articleId)
     }
   },
   methods: {
-    getDetail(id) {
+    getDetail(articleId) {
       detail({
-        articleId: id
+        articleId: articleId
       }).then(res => {
         if (res.data.code === 0) {
           if (res.data.data.templateType == 1) {