Browse Source

更新API请求地址,调整.gitignore以包含dist和dist.zip文件

张涛 1 năm trước cách đây
mục cha
commit
836721f7f3
3 tập tin đã thay đổi với 5 bổ sung4 xóa
  1. 2 1
      .gitignore
  2. 1 1
      public/config.js
  3. 2 2
      vite.config.mjs

+ 2 - 1
.gitignore

@@ -26,6 +26,7 @@ example.*
 no-use.*
 
 # dist
-
+dist
+dist.zip
 docs/.vitepress/cache/
 stats.html

+ 1 - 1
public/config.js

@@ -4,7 +4,7 @@ window.DMX_VERSION = '1.0.1';
  * API请求地址
  * 配置项最后一个字符 无需是 / 即,无需以 / 结束
  */
-window.API_BASE_URL = 'http://smartai.com:8163';
+window.API_BASE_URL = 'http://192.168.20.119:13002';
 window.featureConfigs = [
   {
     name: '智能问答',

+ 2 - 2
vite.config.mjs

@@ -33,7 +33,7 @@ export default defineConfig(({ mode }) => {
       host: '0.0.0.0', // IP配置,支持从IP启动
       proxy: {
         '/console': {
-          target: 'http://smartai.com:8163',
+          target: 'http://192.168.20.119:13002',
           // target: 'http://192.168.20.119:9303',
           changeOrigin: true,
           secure: false,
@@ -42,7 +42,7 @@ export default defineConfig(({ mode }) => {
           rewrite: (path) => path.replace(/^\/proxy_url/, '')
         },
         '/api/': {
-          target: 'http://smartai.com:8163',
+          target: 'http://192.168.20.119:13002',
           // target: 'http://192.168.20.119:9303',
           changeOrigin: true,
           secure: false,