Merge branch 'master' of http://172.16.20.1:3000/duanhao/SocialNetworks_duan
This commit is contained in:
commit
2e0411ec8e
|
|
@ -3,7 +3,7 @@ import cache from "./cache"
|
||||||
import { ElMessage } from "element-plus"
|
import { ElMessage } from "element-plus"
|
||||||
import router from "@/router"
|
import router from "@/router"
|
||||||
import { useLoginStore } from "@/store/authentication/index"
|
import { useLoginStore } from "@/store/authentication/index"
|
||||||
// 创建axios实例
|
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: import.meta.env.VITE_APP_BASE_API, // 从环境变量获取基础URL
|
baseURL: import.meta.env.VITE_APP_BASE_API, // 从环境变量获取基础URL
|
||||||
timeout: 10000, // 请求超时时间
|
timeout: 10000, // 请求超时时间
|
||||||
|
|
|
||||||
|
|
@ -305,6 +305,9 @@ onMounted(() => {
|
||||||
const container = document.getElementById("container")
|
const container = document.getElementById("container")
|
||||||
if (!container) return
|
if (!container) return
|
||||||
chart = echarts.init(container)
|
chart = echarts.init(container)
|
||||||
|
if (!chart.getOption()) {
|
||||||
|
initChart()
|
||||||
|
}
|
||||||
handleClickNode()
|
handleClickNode()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user