Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
55995cd5
authored
2023-03-15 17:15:34 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:配置文件
1 parent
f55854f3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
public/config.js
public/index.html
src/utils/get-page-title.js
public/config.js
0 → 100644
View file @
55995cd
/*
* @Description: 这个是所有api的前缀配置文件
* @Autor: renchao
* @LastEditTime: 2023-03-15 17:14:19
*/
export
default
{
TITLE
:
'汉中市数据上报系统'
,
SERVERAPI
:
'/bdcsjsb'
,
//赵千
MANAGEMENTAPI
:
'http://192.168.2.236/management'
}
\ No newline at end of file
public/index.html
View file @
55995cd
<!--
* @Description: 引入配置文件
* @Autor: renchao
* @LastEditTime: 2023-03-15 1
6:15:45
* @LastEditTime: 2023-03-15 1
7:11:59
-->
<!DOCTYPE html>
<html>
...
...
@@ -23,8 +23,8 @@
</body>
</html>
<script>
document
.
write
(
"<s"
+
"cript type='text/javascript' src='./config.js?"
+
Math
.
random
().
toString
(
36
).
substr
(
2
)
+
"'></scr"
+
"ipt>"
);
window
.
baseUrl
=
location
.
origin
||
location
.
protocol
+
'//'
+
location
.
host
// window.authorization = 'bearer AT-14-h4UlUGjPvgmrIgnDO-3QgMP0m4YJGQTR';
// window.authorization = 'bearer AT-223-c-Q86EHx75m7ig3EDf-SwMWl4U0AKn0b';
...
...
src/utils/get-page-title.js
View file @
55995cd
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-03-15 1
4:37:05
* @LastEditTime: 2023-03-15 1
7:14:42
*/
// 获取浏览器便签标题
import
defaultSettings
from
'@/settings'
import
config
from
'@/api/config'
import
config
from
'/public/config'
const
title
=
config
.
TITLE
export
default
function
getPageTitle
(
pageTitle
)
{
...
...
Please
register
or
sign in
to post a comment