Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Yuan Zhixiang
c-render-vue
Commits
4dd74a4e
Commit
4dd74a4e
authored
May 21, 2024
by
Yuan Zhixiang
Browse files
修复多维数组前缀@
parent
b3f63f43
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/components/VarUnit.vue
View file @
4dd74a4e
...
@@ -47,7 +47,7 @@ const display_name = computed(() => { // 最终显示的变量名称
...
@@ -47,7 +47,7 @@ const display_name = computed(() => { // 最终显示的变量名称
}
}
const
spaceIndex
=
var_name
.
value
.
indexOf
(
'
'
);
// 认为仅有'var (static xxx)'的额外情况
const
spaceIndex
=
var_name
.
value
.
indexOf
(
'
'
);
// 认为仅有'var (static xxx)'的额外情况
if
(
spaceIndex
==
-
1
)
{
if
(
spaceIndex
==
-
1
)
{
if
(
is_array
.
value
)
{
if
(
is_array
.
value
||
is_multi_array
.
value
)
{
return
'
@
'
+
var_name
.
value
return
'
@
'
+
var_name
.
value
}
}
if
(
is_struct
.
value
)
{
if
(
is_struct
.
value
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment