Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/gui/linux-arm64.vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = defineConfig({
productName: 'dev-sidecar',
// eslint-disable-next-line no-template-curly-in-string
artifactName: 'DevSidecar-${version}-${arch}.${ext}',
copyright: 'Copyright © 2020-2026 Greper, WangLiang, CuteOmega',
copyright: 'Copyright © 2020-' + new Date().getFullYear() + ' Greper, WangLiang, CuteOmega',
nsis: {
oneClick: false,
perMachine: true,
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/src/view/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export default {
</div>

<div class="mt5">
©2020-2026 docmirror.cn by
©2020-{{ new Date().getFullYear() }} docmirror.cn by
<a @click="openExternal('https://github.com/greper')">Greper</a>,
Comment on lines 226 to 228

Copilot AI Apr 22, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid creating a new Date instance directly in the template interpolation. This expression is re-evaluated on every re-render and makes the template less declarative; define a currentYear data/computed property (or method) in the script section and interpolate that instead.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@afatcat-xie 修复该问题并通过测试后可合并(建议缓存该Date()对象)
md要不是copilot不能在跨仓库pr上使用我就指挥copilot修了

<a @click="openExternal('https://github.com/wangliang181230')">WangLiang</a>,
<a @click="openExternal('https://github.com/cute-omega')">CuteOmega</a>
Expand Down
2 changes: 1 addition & 1 deletion packages/gui/vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ module.exports = defineConfig({
productName: 'dev-sidecar',
// eslint-disable-next-line no-template-curly-in-string
artifactName: 'DevSidecar-${version}-${arch}.${ext}',
copyright: 'Copyright © 2020-2026 Greper, WangLiang, CuteOmega',
copyright: 'Copyright © 2020-' + new Date().getFullYear() + ' Greper, WangLiang, CuteOmega',
nsis: {
oneClick: false,
perMachine: true,
Expand Down
Loading