Ver Fonte

客户页面

wangxy há 2 dias atrás
pai
commit
a82d89dae8
1 ficheiros alterados com 16 adições e 0 exclusões
  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
+	}
+}