style:配置文件
Showing
3 changed files
with
15 additions
and
6 deletions
public/config.js
0 → 100644
1 | <!-- | 1 | <!-- |
2 | * @Description: 引入配置文件 | 2 | * @Description: 引入配置文件 |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-03-15 16:15:45 | 4 | * @LastEditTime: 2023-03-15 17:11:59 |
5 | --> | 5 | --> |
6 | <!DOCTYPE html> | 6 | <!DOCTYPE html> |
7 | <html> | 7 | <html> |
... | @@ -23,8 +23,8 @@ | ... | @@ -23,8 +23,8 @@ |
23 | </body> | 23 | </body> |
24 | 24 | ||
25 | </html> | 25 | </html> |
26 | |||
26 | <script> | 27 | <script> |
27 | document.write("<s" + "cript type='text/javascript' src='./config.js?" + Math.random().toString(36).substr(2) + "'></scr" + "ipt>"); | ||
28 | window.baseUrl = location.origin || location.protocol + '//' + location.host | 28 | window.baseUrl = location.origin || location.protocol + '//' + location.host |
29 | // window.authorization = 'bearer AT-14-h4UlUGjPvgmrIgnDO-3QgMP0m4YJGQTR'; | 29 | // window.authorization = 'bearer AT-14-h4UlUGjPvgmrIgnDO-3QgMP0m4YJGQTR'; |
30 | // window.authorization = 'bearer AT-223-c-Q86EHx75m7ig3EDf-SwMWl4U0AKn0b'; | 30 | // window.authorization = 'bearer AT-223-c-Q86EHx75m7ig3EDf-SwMWl4U0AKn0b'; | ... | ... |
1 | /* | 1 | /* |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2023-03-15 14:37:05 | 4 | * @LastEditTime: 2023-03-15 17:14:42 |
5 | */ | 5 | */ |
6 | // 获取浏览器便签标题 | 6 | // 获取浏览器便签标题 |
7 | import defaultSettings from '@/settings' | 7 | import config from '/public/config' |
8 | import config from '@/api/config' | ||
9 | |||
10 | const title = config.TITLE | 8 | const title = config.TITLE |
11 | 9 | ||
12 | export default function getPageTitle (pageTitle) { | 10 | export default function getPageTitle (pageTitle) { | ... | ... |
-
Please register or sign in to post a comment