فهرست منبع

feat: 同步计量账号功能

lanjianrong 3 سال پیش
والد
کامیت
10f8e4f758
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/views/dashboard/project-detail/components/account.vue

+ 2 - 2
src/views/dashboard/project-detail/components/account.vue

@@ -77,7 +77,7 @@
       const formElRef = ref<Nullable<FormActionType>>(null)
       const formType = ref(0) // 0 - 创建账号 1 - 更新账号
       const { createMessage } = useMessage()
-      const [registerTable, { setTableData, reload }] = useTable({
+      const [registerTable, { setTableData }] = useTable({
         columns: getTableColumns((item: ProjectAccountItem) => showUpdateModalFn(item), props.hasPermission),
         showTableSetting: true,
         canResize: true
@@ -195,7 +195,7 @@
       /**同步计量账号 */
       async function syncAccount() {
         await syncProjectAccountFromJL({ id: props.id })
-        reload()
+        fetchTableData(props.id)
       }
 
       async function showUpdateModalFn(item: ProjectAccountItem) {