From 6bcc747d6676884462d9f35c560562847274919d Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期四, 06 六月 2024 15:05:24 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TCM_CharacterLibrary --- src/pages/territory/territory.vue | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/pages/territory/territory.vue b/src/pages/territory/territory.vue index 21a1409..892403e 100644 --- a/src/pages/territory/territory.vue +++ b/src/pages/territory/territory.vue @@ -220,7 +220,6 @@ import { loadBMap } from "@/static/map.js"; import L from "leaflet"; import "leaflet.chinatmsproviders"; - import * as echarts from "echarts"; import "echarts/extension/bmap/bmap"; import { getRetrieval, getDynasty, getPreCount } from "@/api/index.js"; @@ -447,12 +446,14 @@ dynasty: this.dynasty1Color, }).then(async (res) => { const totalCount = res.object; + console.log(totalCount, "totalCount"); if (totalCount % 200 == 0) { times = totalCount / 200 - 1; } else { times = Math.floor(totalCount / 200); } console.log(times, "times"); + if (times == 0 || times < 0) times = 1; let markerList = []; for (let i = 1; i <= times; i++) { const curData = await this.getDataPageInfo(i); -- Gitblit v1.9.1