From fd0625f2eb083a6365ea8489284841ba87c6dfaa Mon Sep 17 00:00:00 2001
From: piexlmax <303176530@qq.com>
Date: Wed, 21 Sep 2022 23:41:29 +0800
Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=8C=96=E4=BB=A3=E7=A0=81?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=BE=AE=E8=B0=83,=E7=9B=AE=E5=BD=95?=
=?UTF-8?q?=E7=BB=93=E6=9E=84=E8=B0=83=E6=95=B4=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
web/src/view/systemTools/autoCode/index.vue | 2 +-
web/vite.config.js | 4 ++--
.../code-server => vitePlugin/codeServer}/index.js | 2 +-
.../gva-position => vitePlugin/gvaPosition}/index.js | 0
4 files changed, 4 insertions(+), 4 deletions(-)
rename web/{vite_plugin/code-server => vitePlugin/codeServer}/index.js (97%)
rename web/{vite_plugin/gva-position => vitePlugin/gvaPosition}/index.js (100%)
diff --git a/web/src/view/systemTools/autoCode/index.vue b/web/src/view/systemTools/autoCode/index.vue
index 7002f17fe..3ead59d36 100644
--- a/web/src/view/systemTools/autoCode/index.vue
+++ b/web/src/view/systemTools/autoCode/index.vue
@@ -48,7 +48,7 @@
-
+
diff --git a/web/vite.config.js b/web/vite.config.js
index a852c00ce..5dfe9a2ae 100644
--- a/web/vite.config.js
+++ b/web/vite.config.js
@@ -6,8 +6,8 @@ import * as path from 'path'
import * as dotenv from 'dotenv'
import * as fs from 'fs'
import vuePlugin from '@vitejs/plugin-vue'
-import GvaPosition from './vite_plugin/gva-position'
-import GvaPositionServer from './vite_plugin/code-server'
+import GvaPosition from './vitePlugin/gvaPosition'
+import GvaPositionServer from './vitePlugin/codeServer'
// @see https://cn.vitejs.dev/config/
export default ({
command,
diff --git a/web/vite_plugin/code-server/index.js b/web/vitePlugin/codeServer/index.js
similarity index 97%
rename from web/vite_plugin/code-server/index.js
rename to web/vitePlugin/codeServer/index.js
index cf9dfdd35..714a4db87 100644
--- a/web/vite_plugin/code-server/index.js
+++ b/web/vitePlugin/codeServer/index.js
@@ -21,7 +21,7 @@ export default function GvaPositionServer() {
server.middlewares.use((req, res, next) => {
if (req._parsedUrl.pathname === '/gvaPositionCode') {
const path = req._parsedUrl.query && req._parsedUrl.query.split('=')[1]
- if (path) {
+ if (path && path !== 'null') {
if (process.env.VITE_EDITOR === 'webstorm') {
const linePath = path.split(':')[1]
const filePath = path.split(':')[0]
diff --git a/web/vite_plugin/gva-position/index.js b/web/vitePlugin/gvaPosition/index.js
similarity index 100%
rename from web/vite_plugin/gva-position/index.js
rename to web/vitePlugin/gvaPosition/index.js