Created
March 3, 2022 09:06
-
-
Save mersanuzun/ff39413686c2a45248839e844fe7400b to your computer and use it in GitHub Desktop.
ScriptKeeperService.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ScriptKeeperClient } from '@/apis'; | |
class ScriptKeeperService { | |
async getAppScript(appName) { | |
const { data } = await ScriptKeeperClient.get(`scripts/${appName}`); | |
return { | |
appSrc: data.src, | |
chunkSrc: data.chunk, | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment