wangxy 2 dagar sedan
förälder
incheckning
a82d89dae8
1 ändrade filer med 16 tillägg och 0 borttagningar
  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
+	}
+}