router.pushUrl({
url: 'pages/FileDownPage',
params: { [DataManagement.INTENT_FILE_NAME]: "1", }
})
export class DataManagement {
static readonly INTENT_FILE_NAME: string = "intent_file_name"
}
报错:
Objects with property names that are not identifiers are not supported (arkts-identifiers-as-prop-names) <ArkTSCheck>
这是什么报错呢?
可以使用map集合存放数据进行操作: