wangxy 2 giorni fa
parent
commit
a82d89dae8
1 ha cambiato i file con 16 aggiunte e 0 eliminazioni
  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
+	}
+}