瀏覽代碼

修复this作用域

liyongli 3 年之前
父節點
當前提交
1276d088db
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/pages/privacy/Index.vue
  2. 1 1
      src/pages/userProtocol/Index.vue

+ 1 - 1
src/pages/privacy/Index.vue

@@ -27,7 +27,7 @@ export default {
     }
   },
   mounted() {
-    window.$privacy = function(html) {
+    window.$privacy = html => {
       this.content = html;
     };
     this.$pageParams = currentUrlToParams();

+ 1 - 1
src/pages/userProtocol/Index.vue

@@ -27,7 +27,7 @@ export default {
     }
   },
   mounted() {
-    window.$userProtocol = function(html) {
+    window.$userProtocol = html => {
       this.content = html;
     };
     this.$pageParams = currentUrlToParams();