guhongwei 4 年之前
父節點
當前提交
dacaf409d3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/service/policy.vue

+ 1 - 1
src/views/service/policy.vue

@@ -58,7 +58,6 @@ export default {
   data: function () {
     return {
       form: {
-        user_id: '607e70354de4e23e840f4ef6',
         qyfr: [],
         yyzz: [],
         qylr: [],
@@ -79,6 +78,7 @@ export default {
       this.$refs[formName].validate(async (valid) => {
         if (valid) {
           let data = this.form;
+          data.user_id = this.user.id;
           let res = await this.create(data);
           if (this.$checkRes(res)) {
             this.$message({