mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-02-04 14:53:12 +08:00
refactor: use fetch api instead of axios
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import App from '../src/app.js';
|
||||
|
||||
|
||||
window.json = async fileName=>(await axios(`../data/${fileName}.json`)).data;
|
||||
window.json = async fileName => await (await fetch(`../data/${fileName}.json`)).json();
|
||||
|
||||
// Pssst, I've created a github package - https://github.com/brookesb91/dismissible
|
||||
const hideBanners = (e) => {
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
<meta name="keywords" content="人生重开模拟器 liferestart life restart remake 人生重来"/>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
||||
<script src="../public/bundle.js"></script>
|
||||
<title>Life Restart</title>
|
||||
</head>
|
||||
|
||||
Reference in New Issue
Block a user