message支持type传入
This commit is contained in:
parent
e8d4f9f918
commit
3c3c0952ba
|
|
@ -68,7 +68,7 @@ module.exports = function (content) {
|
||||||
}
|
}
|
||||||
let source = content;
|
let source = content;
|
||||||
if (/pages/.test(context)) {
|
if (/pages/.test(context)) {
|
||||||
source = source + '<message show="{{!!oakError}}" content="{{oakError.msg}}" />';
|
source =source + '<message show="{{!!oakError}}" type="{{oakError.type}}" content="{{oakError.msg}}" />';
|
||||||
}
|
}
|
||||||
if (!/oak:value/.test(source)) {
|
if (!/oak:value/.test(source)) {
|
||||||
return source;
|
return source;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue