guhongwei před 4 roky
rodič
revize
dacaf409d3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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({