message支持type传入

This commit is contained in:
Wang Kejun 2022-05-10 10:52:58 +08:00
parent e8d4f9f918
commit 3c3c0952ba
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ module.exports = function (content) {
}
let source = content;
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)) {
return source;