mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-07-05 01:58:15 +08:00
perf: ⚡ nuget update
[skip ci]
This commit is contained in:
@ -363,7 +363,7 @@ export default {
|
||||
return
|
||||
}
|
||||
if (command === 'copy') {
|
||||
let data = this.current.row[this.current.column?.property]
|
||||
let data = tool.getNestedProperty(this.current.row, this.current.column?.property)
|
||||
if (!data) return
|
||||
|
||||
const textarea = document.createElement('textarea')
|
||||
|
@ -253,6 +253,7 @@ tool.objCopy = function (obj) {
|
||||
|
||||
/* 获取嵌套属性 */
|
||||
tool.getNestedProperty = function (obj, path) {
|
||||
if (!path) return null
|
||||
const keys = path.split('.') // 将属性路径分割为键的数组
|
||||
let current = obj
|
||||
|
||||
|
Reference in New Issue
Block a user