瀏覽代碼

feat(live): live 绑定问题

gemercheung 3 年之前
父節點
當前提交
44b16e2563
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/scenes/bindModal.vue

+ 4 - 4
src/views/scenes/bindModal.vue

@@ -37,7 +37,7 @@
   import { bindAnchorListApi, bindUserApi } from '/@/api/scene/live';
   import { bindAnchorListParam } from '/@/api/scene/model';
   import { Time } from '/@/components/Time';
-  import { useUserStore } from '/@/store/modules/user';
+  // import { useUserStore } from '/@/store/modules/user';
 
   const { t } = useI18n();
   const { createMessage } = useMessage();
@@ -165,15 +165,15 @@
         try {
           const rows = getSelectRows();
           const rawData = getRawDataSource();
-          const userStore = useUserStore();
+          // const userStore = useUserStore();
           let paramsRow: bindAnchorListParam[];
           if (rows?.length > 0) {
             paramsRow = rows.map((row) => {
               return {
-                brandId: row.id,
+                brandId: String(searchInfo.brandId),
                 canShow: row.canShow ? 1 : 0,
                 type: 1,
-                userId: String(userStore.getUserInfo?.id),
+                userId: String(row.id),
               } as bindAnchorListParam;
             });
             await bindUserApi(paramsRow);