Compare commits

...

2 Commits

Author SHA1 Message Date
TimSpan e4b976697e Merge branch 'main' of http://175.6.124.250:3100/kevinMao/canteen_system 2025-05-23 16:54:18 +08:00
TimSpan 61072e1d9c 。。。 2025-05-23 16:54:00 +08:00
3 changed files with 7874 additions and 8 deletions

View File

@ -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"

7867
src/assets/430000_full.json Normal file

File diff suppressed because it is too large Load Diff

View File

@ -37,16 +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"
);
console.log(mapJson,'222');
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: {