Browse Source

fix: 路径错误

(cherry picked from commit e30d5559e6b930185ec25ab70a3a2a843abde6cf)
xingyu 1 year ago
parent
commit
d327d28755

+ 1 - 1
src/views/member/point/record/index.vue

@@ -111,7 +111,7 @@
 <script lang="ts" setup>
 import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
 import { dateFormatter } from '@/utils/formatTime'
-import * as RecordApi from '@/api//member/point/record'
+import * as RecordApi from '@/api/member/point/record'
 
 defineOptions({ name: 'PointRecord' })
 

+ 3 - 6
src/views/member/user/components/point-list.vue

@@ -99,14 +99,14 @@
 <script lang="ts" setup>
 import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
 import { dateFormatter } from '@/utils/formatTime'
-import * as RecordApi from '@/api//member/point/record'
+import * as RecordApi from '@/api/member/point/record'
+import { RecordQueryVO } from '@/api/member/point/record'
 
 defineOptions({ name: 'PointList' })
-
 const loading = ref(true) // 列表的加载中
 const total = ref(0) // 列表的总页数
 const list = ref([]) // 列表的数据
-const queryParams = reactive({
+const queryParams = reactive<RecordQueryVO>({
   pageNo: 1,
   pageSize: 10,
   bizType: undefined,
@@ -139,15 +139,12 @@ const resetQuery = () => {
   queryFormRef.value.resetFields()
   handleQuery()
 }
-
-// TODO @梦:改成 userId 哈
 const { memberId } = defineProps({
   memberId: {
     type: Number,
     required: true
   }
 })
-
 /** 初始化 **/
 onMounted(() => {
   queryParams.userId = memberId