Compare commits
No commits in common. "e4b976697ef4d10bfa4e18c4c5d8c01e006f2620" and "5fb3fafad51da52b44afc71ddfcf6c867c55758f" have entirely different histories.
e4b976697e
...
5fb3fafad5
|
@ -6,7 +6,7 @@
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --mode development",
|
"dev": "vite --mode development",
|
||||||
"local": "vite --mode locality",
|
"local": "vite --mode locality",
|
||||||
"build": "vite build --mode production",
|
"build": "run-p type-check \"build-only {@}\" --",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"build-only": "vite build",
|
"build-only": "vite build",
|
||||||
"type-check": "vue-tsc --build"
|
"type-check": "vue-tsc --build"
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -37,15 +37,16 @@
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
const chartRef = ref(null);
|
const chartRef = ref(null);
|
||||||
import hunanGeoData from "@/assets/430000_full.json";
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
const chart = echarts.init(chartRef.value);
|
const chart = echarts.init(chartRef.value);
|
||||||
|
|
||||||
// 载入湖南省地图 GeoJSON
|
// 载入湖南省地图 GeoJSON
|
||||||
// const mapJson = await axios.get(
|
const mapJson = await axios.get(
|
||||||
// "https://geo.datav.aliyun.com/areas_v3/bound/430000_full.json"
|
"https://geo.datav.aliyun.com/areas_v3/bound/430000_full.json"
|
||||||
// );
|
);
|
||||||
// const mapJson = await axios.get("/static/geo/430000_full.json");
|
console.log(mapJson,'222');
|
||||||
echarts.registerMap("hunan", hunanGeoData as any);
|
echarts.registerMap("hunan", mapJson.data);
|
||||||
|
|
||||||
const option = {
|
const option = {
|
||||||
title: {
|
title: {
|
||||||
|
|
Loading…
Reference in New Issue