diff --git a/package-lock.json b/package-lock.json index 228365e..67ae9e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,6 +9,7 @@ "version": "0.0.0", "dependencies": { "axios": "^1.7.3", + "dayjs": "^1.11.13", "echarts": "^5.5.1", "element-plus": "^2.7.8", "vue": "^3.4.29", @@ -1074,9 +1075,9 @@ "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" }, "node_modules/dayjs": { - "version": "1.11.12", - "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.12.tgz", - "integrity": "sha512-Rt2g+nTbLlDWZTwwrIXjy9MeiZmSDI375FvZs72ngxx8PDC6YXOeR3q5LAuPzjZQxhiWdRKac7RKV+YyQYfYIg==" + "version": "1.11.13", + "resolved": "https://registry.npmmirror.com/dayjs/-/dayjs-1.11.13.tgz", + "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==" }, "node_modules/de-indent": { "version": "1.0.2", diff --git a/package.json b/package.json index 1dce685..aa6abb2 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ }, "dependencies": { "axios": "^1.7.3", + "dayjs": "^1.11.13", "echarts": "^5.5.1", "element-plus": "^2.7.8", "vue": "^3.4.29", diff --git a/vite.config.ts b/vite.config.ts index cc02d8a..d87cf0a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,20 +15,20 @@ export default defineConfig({ }, server:{ // host:'192.168.28.44', - host:'127.0.0.1', - // host: '192.168.28.32', + // host:'192.168.28.44', + host: '127.0.0.1', port: 5173, open:true, cors: true, // proxy: { // '/api': "192.168.28.44:8000" // } - proxy: { - '/api': { - target: 'http://127.0.0.1:8000', // 目标 API 地址 - changeOrigin: true, // 开启跨域 - rewrite: path => path.replace('^/api/', '') - } - } + // proxy: { + // '/api': { + // target: 'http://192.168.28.33:8000', + // changeOrigin: true, + // rewrite: path => path.replace('^/api/', '') + // } + // } } })