|
@@ -38,7 +38,7 @@
|
|
// 使用Axios发起请求
|
|
// 使用Axios发起请求
|
|
const getData = async () =>{
|
|
const getData = async () =>{
|
|
try {
|
|
try {
|
|
- const response = await axios.get('/static/data.json');
|
|
|
|
|
|
+ const response = await axios.get('./static/data.json');
|
|
data.value = response.data;
|
|
data.value = response.data;
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.error(error);
|
|
console.error(error);
|