|
@@ -45,7 +45,7 @@ const processPublicData = (req, title) => { |
|
@@ -45,7 +45,7 @@ const processPublicData = (req, title) => { |
45
|
*/
|
45
|
*/
|
46
|
exports.index = (req, res) => {
|
46
|
exports.index = (req, res) => {
|
47
|
starModel.getIndexData().then((result) => {
|
47
|
starModel.getIndexData().then((result) => {
|
48
|
- const pageHeadTab = _.clone(headTab);
|
48
|
+ const pageHeadTab = _.cloneDeep(headTab);
|
49
|
|
49
|
|
50
|
pageHeadTab[0].cur = true;
|
50
|
pageHeadTab[0].cur = true;
|
51
|
res.render('star/index', _.assign({
|
51
|
res.render('star/index', _.assign({
|
|
@@ -71,7 +71,7 @@ exports.index = (req, res) => { |
|
@@ -71,7 +71,7 @@ exports.index = (req, res) => { |
71
|
*/
|
71
|
*/
|
72
|
exports.special = (req, res) => {
|
72
|
exports.special = (req, res) => {
|
73
|
starModel.getSpecialData().then((result) => {
|
73
|
starModel.getSpecialData().then((result) => {
|
74
|
- const pageHeadTab = _.clone(headTab);
|
74
|
+ const pageHeadTab = _.cloneDeep(headTab);
|
75
|
|
75
|
|
76
|
pageHeadTab[1].cur = true;
|
76
|
pageHeadTab[1].cur = true;
|
77
|
res.render('star/special', _.assign({
|
77
|
res.render('star/special', _.assign({
|
|
@@ -91,7 +91,7 @@ exports.special = (req, res) => { |
|
@@ -91,7 +91,7 @@ exports.special = (req, res) => { |
91
|
* @return {[type]}
|
91
|
* @return {[type]}
|
92
|
*/
|
92
|
*/
|
93
|
exports.collocation = (req, res) => {
|
93
|
exports.collocation = (req, res) => {
|
94
|
- const pageHeadTab = _.clone(headTab);
|
94
|
+ const pageHeadTab = _.cloneDeep(headTab);
|
95
|
|
95
|
|
96
|
pageHeadTab[2].cur = true;
|
96
|
pageHeadTab[2].cur = true;
|
97
|
res.render('star/collocation', _.assign({
|
97
|
res.render('star/collocation', _.assign({
|
|
@@ -153,4 +153,3 @@ exports.detailList = (req, res) => { |
|
@@ -153,4 +153,3 @@ exports.detailList = (req, res) => { |
153
|
}));
|
153
|
}));
|
154
|
});
|
154
|
});
|
155
|
}; |
155
|
}; |
156
|
- |
|
|