-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
feat: Update international address #7685
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,7 +126,7 @@ const toLxware = () => { | |
if (!globalStore.isIntl) { | ||
window.open('https://www.lxware.cn/1panel' + '', '_blank', 'noopener,noreferrer'); | ||
} else { | ||
window.open('https://1panel.hk' + '', '_blank', 'noopener,noreferrer'); | ||
window.open('https://1panel.hk/pricing' + '', '_blank', 'noopener,noreferrer'); | ||
} | ||
}; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There is no significant issue with the provided JavaScript code. However, there might be an unintended change: if (!globalStore.isIntl) { This should likely check Potential optimization suggestion: For performance reasons, especially considering it's only a redirect or open call, there's not much to optimize here beyond ensuring that all paths ( |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -139,7 +139,11 @@ const license = reactive({ | |
}); | ||
|
||
const toLxware = () => { | ||
window.open('https://www.lxware.cn/1panel' + '', '_blank', 'noopener,noreferrer'); | ||
if (!globalStore.isIntl) { | ||
window.open('https://www.lxware.cn/1panel' + '', '_blank', 'noopener,noreferrer'); | ||
} else { | ||
window.open('https://1panel.hk/pricing' + '', '_blank', 'noopener,noreferrer'); | ||
} | ||
}; | ||
|
||
const loadInfo = () => { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The code appears to be attempting to conditionally redirect users based on an
Overall, the code seems well-written from an execution standpoint but could benefit from more comprehensive error handling and proper testing around the dependency |
||
|
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 difference is a minor conditional statement inside the
toLxware
function that changes the link based on whetherglobalStore.isIntl
is true or false. This will likely improve clarity and maintainability of the function but doesn't introduce any immediate errors. It's good practice to add comments explaining this conditional logic.