...
|
...
|
@@ -7,6 +7,7 @@ |
|
|
'use strict';
|
|
|
|
|
|
const headerModel = require('../../../doraemon/models/header'); // 头部model
|
|
|
const chatQaModel = require('../models/chatQa');
|
|
|
|
|
|
exports.qaList = (req, res, next) => {
|
|
|
|
...
|
...
|
@@ -23,7 +24,13 @@ exports.qaList = (req, res, next) => { |
|
|
pageFooter: true
|
|
|
};
|
|
|
|
|
|
res.render('chat/chat-qa', responseData);
|
|
|
chatQaModel.index({
|
|
|
|
|
|
}).then((result) => {
|
|
|
|
|
|
res.render('chat/chat-qa', Object.assign(result, responseData));
|
|
|
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
exports.qaSearch = (req, res, next) => {
|
...
|
...
|
|