From 3bff53abcb2af4cf9332db4340a7c46b1ab58fe5 Mon Sep 17 00:00:00 2001 From: zhangxiaomeng <1362468712@qq.com> Date: Tue, 21 Jan 2025 09:16:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kcui/src/assets/js/graphvis.min.20241008.js | 2 +- kcui/src/router/router.js | 14 +++---- kcui/src/view/Home.vue | 60 ++++++++++++++++++----------- kcui/src/view/TWInfo.vue | 1 - 4 files changed, 45 insertions(+), 32 deletions(-) diff --git a/kcui/src/assets/js/graphvis.min.20241008.js b/kcui/src/assets/js/graphvis.min.20241008.js index 35dc98a..c76fc71 100644 --- a/kcui/src/assets/js/graphvis.min.20241008.js +++ b/kcui/src/assets/js/graphvis.min.20241008.js @@ -2622,7 +2622,7 @@ } } else { - console.log(this.radius) + return ( (x - this.cx) * (x - this.cx) + (y - this.cy) * (y - this.cy) < this.radius * this.scaleX * this.radius * this.scaleX diff --git a/kcui/src/router/router.js b/kcui/src/router/router.js index c3db2a1..5f90fc6 100644 --- a/kcui/src/router/router.js +++ b/kcui/src/router/router.js @@ -1,7 +1,7 @@ //1.导入vue 和 vuerouter 的包 import Vue from 'vue' import VueRouter from 'vue-router' -// import Home from '@/view/Home.vue' +import Home from '@/view/Home.vue' import Book from '@/view/Book.vue' import TwInfo from '@/view/TWInfo.vue' @@ -12,18 +12,18 @@ Vue.use(VueRouter) export default new VueRouter({ routes: [ //配置路由,这里是个数组 - // { //每一个链接都是一个对象 - // path: '/', //链接路径 - // name: 'Home', //路由名称, - // component: Home //对应的组件模板 - // }, + { //每一个链接都是一个对象 + path: '/', //链接路径 + name: 'Home', //路由名称, + component: Home //对应的组件模板 + }, { //每一个链接都是一个对象 path: '/Book', //链接路径 name: 'Book', //路由名称, component: Book //对应的组件模板 }, { //每一个链接都是一个对象 - path: '/', //链接路径 + path: '/TwInfo', //链接路径 name: 'TwInfo', //路由名称, component: TwInfo //对应的组件模板 }, diff --git a/kcui/src/view/Home.vue b/kcui/src/view/Home.vue index f81713c..a48ab4a 100644 --- a/kcui/src/view/Home.vue +++ b/kcui/src/view/Home.vue @@ -3,14 +3,17 @@