Skip to content

Commit 2a1de93

Browse files
author
wb-xsf297196
committed
Fix remove config file
1 parent ef11267 commit 2a1de93

File tree

8 files changed

+6
-115
lines changed

8 files changed

+6
-115
lines changed

src/app/config/api.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/app/config/dip-api.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/app/config/pro-api.js

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/app/containers/homePage/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class App extends React.Component<Props, State> {
1515
constructor(props: Props) {
1616
super(props);
1717
this.state = {
18-
msg: "This is a Ts demoooo!",
18+
msg: "This is a TypeScript Example!",
1919
num: 1,
2020
// a: 11 // it will be wrong if it not be defined in typs.ts
2121
};

src/app/containers/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ class App extends React.Component {
6262
</Menu>
6363
</Header>
6464

65+
{/* main content */}
6566
<Content className="main-layout-content">{this.props.children}</Content>
6667

6768
<Footer className="footer" style={{ textAlign: "center" }}>

src/app/containers/login/index.less

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
bottom: 0;
1313
right: 0;
1414
left: 0;
15-
background: url(https://cn.bing.com/az/hprichbg/rb/Europa_ZH-CN11806353149_1920x1080.jpg) no-repeat 100%;
15+
background-image: url(https://cn.bing.com/az/hprichbg/rb/Europa_ZH-CN11806353149_1920x1080.jpg);
16+
background-repeat: no-repeat;
17+
background-size: 100% 100%;
18+
1619
}
1720
.login-content {
1821
padding-bottom: 68px;

src/app/utils/common.js

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -16,66 +16,3 @@ export function getUrlParam(name) {
1616
if (r != null) return unescape(r[2]);
1717
return null;
1818
}
19-
/**
20-
* 合并两个对象
21-
* 如果dest对应属性value为undefined,则不会更新
22-
* @method merge
23-
* @param {object} src
24-
* @param {object} dest
25-
* @return {object} merged object
26-
*/
27-
export function merge(src, dest) {
28-
const ret = {
29-
...src
30-
};
31-
for (const key in dest) {
32-
if (dest[key] !== undefined) {
33-
ret[key] = dest[key];
34-
}
35-
}
36-
return ret;
37-
}
38-
39-
export function getFirstX(str, num = 6) {
40-
return (str || "").length > num
41-
? (str || "").slice(0, num - 1) + "..."
42-
: str || "";
43-
}
44-
45-
export const getFieldValue = (data = {}) => {
46-
const { value = "" } = data;
47-
return typeof value === "object" ? value.key : value;
48-
};
49-
50-
export const getFieldName = (data = {}) => {
51-
return data.fieldName || " ";
52-
};
53-
54-
export const getDept = value => {
55-
const dept = getFieldValue(value);
56-
if (dept) {
57-
if (dept.length > 8) {
58-
return dept.substr(0, 7) + "...";
59-
} else {
60-
return dept;
61-
}
62-
} else {
63-
return "无";
64-
}
65-
};
66-
67-
/*
68-
* 禁止弹窗后底层滚动
69-
* forbidScroll(true) 禁止;forbidScroll(false) 恢复
70-
* */
71-
export const forbidScroll = isForbid => {
72-
if (isForbid) {
73-
document.body.style.overflow = "hidden";
74-
document.body.style.paddingRight = "15px";
75-
} else {
76-
document.body.style.overflow = "";
77-
document.body.style.paddingRight = "";
78-
}
79-
};
80-
81-
export const cache = {};

src/app/utils/origin.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)