diff --git a/electron.vite.config.1761880900863.mjs b/electron.vite.config.1761880900863.mjs new file mode 100644 index 0000000..3edbcb9 --- /dev/null +++ b/electron.vite.config.1761880900863.mjs @@ -0,0 +1,60 @@ +// electron.vite.config.ts +import { resolve } from "path"; +import { defineConfig, externalizeDepsPlugin } from "electron-vite"; +import vue from "@vitejs/plugin-vue"; +import AutoImport from "unplugin-auto-import/vite"; +import Components from "unplugin-vue-components/vite"; +import { ElementPlusResolver } from "unplugin-vue-components/resolvers"; +import { createSvgIconsPlugin } from "vite-plugin-svg-icons"; +import path from "path"; +var electron_vite_config_default = defineConfig({ + main: { + plugins: [externalizeDepsPlugin()] + }, + preload: { + plugins: [externalizeDepsPlugin()] + }, + renderer: { + resolve: { + alias: { + "@renderer": resolve("src/renderer/src"), + "@": resolve("src/renderer/src") + } + }, + plugins: [ + vue(), + AutoImport({ + imports: ["vue"], + dts: "src/auto-imports.d.ts", + // 自动生成类型声明文件 + resolvers: [ElementPlusResolver()] + }), + Components({ + resolvers: [ElementPlusResolver()] + }), + // SVG图标插件配置 + // 配置SVG图标插件 + createSvgIconsPlugin({ + iconDirs: [path.resolve(process.cwd(), "src/renderer/src/icons/svg")], + symbolId: "icon-[name]", + // 自动清除 SVG 中的 fill 和 stroke 属性 + svgoOptions: { + plugins: [{ name: "removeAttrs", params: { attrs: ["fill", "stroke", "stroke-width"] } }] + } + }) + ] + /*server: { + port: 8848, + proxy: { + '/api': { + target: localStorage.getItem('ip') || 'http://127.0.0.1:8848', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api/, '') + } + } + }*/ + } +}); +export { + electron_vite_config_default as default +}; diff --git a/resources/java/app/yjearth.jar b/resources/java/app/yjearth.jar index 843120d..7680891 100644 Binary files a/resources/java/app/yjearth.jar and b/resources/java/app/yjearth.jar differ diff --git a/src/renderer/src/api/ts/index.ts b/src/renderer/src/api/ts/index.ts new file mode 100644 index 0000000..c3145df --- /dev/null +++ b/src/renderer/src/api/ts/index.ts @@ -0,0 +1,23 @@ +import request from '@/axios/request' +import {data} from "jquery"; + +export const TsApi = { + addPlan: async (data: any) => { + return await request.post({ + url: '/tsPlan/add', + data + }) + }, + planList: async (data: any) => { + return await request.post({ + url: '/tsPlan/list', + data + }) + }, + delPlan: async (data: any) => { + return await request.post({ + url: '/tsPlan/delete', + data + }) + }, +} diff --git a/src/renderer/src/views/TS/newPlan.vue b/src/renderer/src/views/TS/newPlan.vue new file mode 100644 index 0000000..a709c35 --- /dev/null +++ b/src/renderer/src/views/TS/newPlan.vue @@ -0,0 +1,172 @@ + + + + +