-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
perf: invite user get error #4768
Conversation
vm.$hasPerm('terminal.delete_commandstorage')) | ||
}, | ||
default: { | ||
width: '130px' | ||
}, | ||
hasClone: false, | ||
extraActions: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are several issues to consider:
vm
is not defined before its use
This can lead to an error at runtime, since Vue does not know about it until you initialize your component. This might be because of a missing import statement or a typo.
I recommend:
import {ref} from 'vue'
// ...
const vm = ref(null)
However, there may be some other problems depending on where this file belongs and how components are being imported. Please review and update the code accordingly.
@@ -256,7 +256,7 @@ export default { | |||
{ | |||
path: 'replay-storage/:id/update', | |||
name: 'ReplayStorageUpdate', | |||
component: () => import('@/views/settings/Storage/ReplayStorageCreateUpdate'), | |||
component: () => import('@/views/settings/Storage/ObjectStorageCreateUpdate.vue'), | |||
meta: { | |||
title: i18n.t('ReplayStorageUpdate'), | |||
activeMenu: '/settings/storage', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There doesn't seem to be any significant differences between the code you've provided, beyond minor syntax adjustments for importing different components. There don't appear to need further checks or corrections at this point. If there were specific areas where improvements could benefit from additional coding effort like performance optimizations, refactoring complex data structures (like storing paths), or ensuring consistent application styles, those would be more appropriate topics for detailed comments and discussion within the context of a larger project.
@@ -139,7 +139,7 @@ export default { | |||
switch (name) { | |||
case 'id': | |||
if (!col.width) { | |||
col.width = '290px' | |||
col.width = '299px' | |||
} | |||
if (!col.formatter) { | |||
col.formatter = CopyableFormatter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The provided answer appears to be written in Spanish instead of English. Here's my translation with explanations:
- "export default { ... }" is missing semicolon at the end, which makes this line invalid syntax.
The difference between the two versions should be resolved by adding a closing semi-colon (;) after the default
keyword.
For example:
export default {
...
}
This will correctly create an object literal { .. }
.
|
perf: update create object command storage
perf: invite user get error