소스 검색

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

萤火科技 5 년 전
부모
커밋
a822e0cf6b
2개의 변경된 파일과 4개의 추가작업 그리고 4개의 파일을 삭제
  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',
   APP_NAME: '萤火商城系统2.0',
   // 必填: api地址, 换成自己的域名即可
   // 必填: 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模块的入口地址
   // 必填: store模块的入口地址
   // 例如: https://www.你的域名.com/store
   // 例如: https://www.你的域名.com/store
   STORE_URL: '../store'
   STORE_URL: '../store'

+ 2 - 2
public/store/config.js

@@ -2,6 +2,6 @@ window.publicConfig = {
   // 系统名称
   // 系统名称
   APP_NAME: '萤火商城系统2.0',
   APP_NAME: '萤火商城系统2.0',
   // 必填: api地址, 换成自己的域名即可
   // 必填: 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'
 }
 }