소스 검색

Merge branch 'iteration-temp-http' into staging

lex-xin 7 달 전
부모
커밋
9c35fbb6f3
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/views/cloudPractice/cloudPractice.tsx
  2. 2 2
      src/views/cloudPractice/useData.ts

+ 1 - 1
src/views/cloudPractice/cloudPractice.tsx

@@ -751,7 +751,7 @@ export default defineComponent({
       }
 
       const __init = async () => {
-         await getInstrumentCodes()
+         getInstrumentCodes()
          await handleAllSearchList()
          await handleAllGetSubject()
          await handleAllGetList()

+ 2 - 2
src/views/cloudPractice/useData.ts

@@ -6,7 +6,7 @@ import { getToken } from "@/libs/auth"
 import { httpAjax } from "@/plugin/httpAjax"
 
 import userStore from "@/store/modules/user"
-import { ref } from "vue"
+import { ref, shallowRef } from "vue"
 
 /**
  * 搜索数据
@@ -14,7 +14,7 @@ import { ref } from "vue"
 export const useFunction = () => {
    const userStoreHook = userStore()
    const loading = ref(false)
-   const instrumentCodes = ref<any>({}) // 乐器code
+   const instrumentCodes = shallowRef<any>({}) // 乐器code
 
    /** 跳转云教练 */
    const isPracticeShow = ref(false)