diff --git a/electron.vite.config.mjs b/electron.vite.config.mjs
index d19fc20..12cab0b 100644
--- a/electron.vite.config.mjs
+++ b/electron.vite.config.mjs
@@ -1,5 +1,5 @@
import { resolve } from 'path'
-// const path = require('path')
+import path from 'path'
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
import vue from '@vitejs/plugin-vue'
import WindiCSS from "vite-plugin-windicss"
@@ -14,15 +14,16 @@ export default defineConfig({
renderer: {
resolve: {
alias: {
- '@': resolve('./src/renderer/src'),
- // '@': path.join(__dirname, './src/renderer/src'),
+ // '@': resolve('./src/renderer/src'),
+ // '@': path.resolve(__dirname, 'src/renderer/src'),
+ '@': path.join(__dirname, './src/renderer/src'),
}
},
server: {
proxy: {
'/dev-api': {
- target: 'http://27.128.240.72:7865',
- // target: 'http://192.168.2.52:7863',
+ // target: 'http://27.128.240.72:7865',
+ target: 'http://192.168.2.52:7863',
changeOrigin: true,
rewrite: (p) => p.replace(/^\/dev-api/, '')
},
diff --git a/jsconfig.json b/jsconfig.json
new file mode 100644
index 0000000..63f8c59
--- /dev/null
+++ b/jsconfig.json
@@ -0,0 +1,14 @@
+{
+ "compilerOptions": {
+ "baseUrl": "./",
+ "paths": {
+ "@/*":[
+ "src/renderer/src/*"
+ ]
+ }
+ },
+ "exclude": [
+ "node_modeules",
+ "dist"
+ ]
+}
diff --git a/src/renderer/src/api/file/index.js b/src/renderer/src/api/file/index.js
new file mode 100644
index 0000000..d7e590b
--- /dev/null
+++ b/src/renderer/src/api/file/index.js
@@ -0,0 +1,10 @@
+// 查询evaluation列表
+import request from '@/utils/request'
+
+export const getSmarttalkPage = (params) => {
+ return request({
+ url: '/smarttalk/file/getSmarttalkPage',
+ method: 'post',
+ params
+ })
+}
diff --git a/src/renderer/src/components/file-upload/index.vue b/src/renderer/src/components/file-upload/index.vue
index 5195a8c..f4829de 100644
--- a/src/renderer/src/components/file-upload/index.vue
+++ b/src/renderer/src/components/file-upload/index.vue
@@ -16,7 +16,8 @@
\ No newline at end of file
+
\ No newline at end of file