소스 검색

客户页面

wangxy 2 일 전
부모
커밋
a82d89dae8
1개의 변경된 파일16개의 추가작업 그리고 0개의 파일을 삭제
  1. 16 0
      pages/admin/Hetong/useHetong.js

+ 16 - 0
pages/admin/Hetong/useHetong.js

@@ -0,0 +1,16 @@
+import { provide,inject } from "vue"
+
+
+const customKey = 'hetong';
+
+export function useHetong() {
+	
+	const injectHetong = (defaultValue) => inject(customKey,defaultValue)
+	
+	const provideHetong = (data) => provide(customKey, data)
+	
+	return {
+		injectHetong,
+		provideHetong
+	}
+}