Sfoglia il codice sorgente

优化:api地址改为兼容模式

萤火科技 5 anni fa
parent
commit
a822e0cf6b
2 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 2 2
      public/admin/config.js
  2. 2 2
      public/store/config.js

+ 2 - 2
public/admin/config.js

@@ -2,8 +2,8 @@ window.serverConfig = {
   // 系统名称
   APP_NAME: '萤火商城系统2.0',
   // 必填: api地址, 换成自己的域名即可
-  // 例如: https://www.你的域名.com/index.php/admin
-  BASE_API: '../index.php/admin',
+  // 例如: https://www.你的域名.com/index.php?s=/admin
+  BASE_API: '../index.php?s=/admin',
   // 必填: store模块的入口地址
   // 例如: https://www.你的域名.com/store
   STORE_URL: '../store'

+ 2 - 2
public/store/config.js

@@ -2,6 +2,6 @@ window.publicConfig = {
   // 系统名称
   APP_NAME: '萤火商城系统2.0',
   // 必填: api地址, 换成自己的域名即可
-  // 例如: https://www.你的域名.com/index.php/store
-  BASE_API: '../index.php/store'
+  // 例如: https://www.你的域名.com/index.php?s=/store
+  BASE_API: '../index.php?s=/store'
 }