diff --git a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/rewriteSourceMap.ts b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/rewriteSourceMap.ts index 0f211b66a232f3bd981a957332d574717776a9e6..68f8d55270ebcbfbe8961d9da8582aa14f9bfd78 100644 --- a/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/rewriteSourceMap.ts +++ b/packages/uni-app-uts/src/plugins/android/uvue/sfc/compiler/script/rewriteSourceMap.ts @@ -117,10 +117,10 @@ export function rewriteSourceMap( } else if (node.type === 'ClassDeclaration') { if (node.implements && node.implements.length > 0) { // 已有接口 - s.appendRight(startOffset + node.body.start! - 1, `, IUTSSourceMap`) + s.appendRight(startOffset + node.body.start!, `, IUTSSourceMap`) } else { s.appendRight( - startOffset + node.body.start! - 1, + startOffset + node.body.start!, ` implements IUTSSourceMap` ) }