mirror of
https://github.com/keven1024/015.git
synced 2026-06-06 20:39:35 +00:00
fix: update package.json dependencies and refactor share composables for improved functionality
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
const useAppConfig = () => {
|
||||
const { data } = useFetch('/config')
|
||||
return data
|
||||
}
|
||||
|
||||
export default useAppConfig
|
||||
6
front/composables/useMyAppConfig.ts
Normal file
6
front/composables/useMyAppConfig.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
const useMyAppConfig = () => {
|
||||
const { data } = useFetch("/config");
|
||||
return data;
|
||||
};
|
||||
|
||||
export default useMyAppConfig;
|
||||
@@ -60,7 +60,7 @@ const createTextShare = async (data: { text: string; config: any }) => {
|
||||
});
|
||||
};
|
||||
|
||||
const useAppShare = () => {
|
||||
const useMyAppShare = () => {
|
||||
return {
|
||||
downloadFile,
|
||||
createShare,
|
||||
@@ -69,4 +69,4 @@ const useAppShare = () => {
|
||||
};
|
||||
};
|
||||
|
||||
export default useAppShare;
|
||||
export default useMyAppShare;
|
||||
Reference in New Issue
Block a user