。。。
This commit is contained in:
parent
bd219fd37f
commit
61072e1d9c
|
@ -6,7 +6,7 @@
|
|||
"scripts": {
|
||||
"dev": "vite --mode development",
|
||||
"local": "vite --mode locality",
|
||||
"build": "run-p type-check \"build-only {@}\" --",
|
||||
"build": "vite build --mode production",
|
||||
"preview": "vite preview",
|
||||
"build-only": "vite build",
|
||||
"type-check": "vue-tsc --build"
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -37,15 +37,15 @@
|
|||
import axios from "axios";
|
||||
|
||||
const chartRef = ref(null);
|
||||
|
||||
import hunanGeoData from "@/assets/430000_full.json";
|
||||
onMounted(async () => {
|
||||
const chart = echarts.init(chartRef.value);
|
||||
|
||||
// 载入湖南省地图 GeoJSON
|
||||
const mapJson = await axios.get(
|
||||
"https://geo.datav.aliyun.com/areas_v3/bound/430000_full.json"
|
||||
);
|
||||
echarts.registerMap("hunan", mapJson.data);
|
||||
// const mapJson = await axios.get(
|
||||
// "https://geo.datav.aliyun.com/areas_v3/bound/430000_full.json"
|
||||
// );
|
||||
// const mapJson = await axios.get("/static/geo/430000_full.json");
|
||||
echarts.registerMap("hunan", hunanGeoData as any);
|
||||
|
||||
const option = {
|
||||
title: {
|
||||
|
|
Loading…
Reference in New Issue