-
Notifications
You must be signed in to change notification settings - Fork 124
fix: applet host update error #4900
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
Conversation
} | ||
|
||
this.$refs.ListTable.onUpdate({ row, query: meta }) | ||
this.$refs.ListTable.onUpdate({ row, query }) | ||
}, | ||
createAsset(platform) { | ||
this.showPlatform = false |
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 code does not appear to have any irregularities or potential issues. The current implementation is clear and well-documented, including detailed comments on each function's purpose. There do not seem to be significant opportunities for improvement based solely on the content provided.
However, I notice that there is an issue with a typo in the this.$refs.ListTable
object reference line; it should mention $ref
, instead of just "$
". This may cause some compatibility concerns when working within JavaScript applications or scripts.
Additionally, since we're looking back from 2021-09-01 till now, we might need to consider how our changes will integrate across different periods without breaking backward compatibility.
@@ -93,7 +97,7 @@ export default { | |||
hasExport: false, | |||
hasImport: false, | |||
onCreate: () => { | |||
this.$refs.table.onCreate({ type: 'windows', category: 'host', platform: 'RemoteAppHost' }) | |||
this.$refs.table.onCreate({ query: appletRouteQuery }) | |||
} | |||
} | |||
} |
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 is no significant deviation from the given JavaScript code. It appears to be working fine until version 2. In addition, it includes some minor changes like export default
directive which could potentially break if other parts of your application use the same name. Also ensure that you always update your code according to newer requirements.
@@ -67,7 +67,7 @@ export default { | |||
fieldsMeta: {}, | |||
performSubmit(validValues) { | |||
let url = this.url | |||
const { id = '' } = this.$route.query | |||
const { id = '' } = this.$route.params | |||
const values = _.cloneDeep(validValues) | |||
const submitMethod = id ? 'put' : 'post' | |||
|
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.
In the provided HTML and JavaScript code snippet from 2021, there are no obvious differences in functionality that would require specific updates in response to current trends or requirements. However, it's important to maintain a good practice of naming conventions (for example variables being named identically). If you have updated versions of these files after 2021-09-01 and need assistance with those changes too, feel free to ask!
|
fix: applet host update error