|
@@ -799,10 +799,18 @@ var vm = new Vue({
|
|
|
try {
|
|
|
var info = res.data[source]
|
|
|
if (info) {
|
|
|
- _this.dialogTitleTop = info.title
|
|
|
- _this.dialogTitle = info.subtitle
|
|
|
- _this.ajaxSourceTitleInfo.cancelText = info.button_cancel
|
|
|
- _this.ajaxSourceTitleInfo.submitText = info.button_confirm
|
|
|
+ if (info.title) {
|
|
|
+ _this.dialogTitleTop = info.title
|
|
|
+ }
|
|
|
+ if (info.subtitle) {
|
|
|
+ _this.dialogTitle = info.subtitle
|
|
|
+ }
|
|
|
+ if (info.button_cancel) {
|
|
|
+ _this.ajaxSourceTitleInfo.cancelText = info.button_cancel
|
|
|
+ }
|
|
|
+ if (info.button_confirm) {
|
|
|
+ _this.ajaxSourceTitleInfo.submitText = info.button_confirm
|
|
|
+ }
|
|
|
}
|
|
|
} catch (e) {
|
|
|
console.warn(e)
|