Skip to content

fix: Fixed bug with website template - #13484

Merged
wanghe-fit2cloud merged 1 commit into
dev-v2from
pr@dev-v2@agent
Aug 5, 2026
Merged

fix: Fixed bug with website template#13484
wanghe-fit2cloud merged 1 commit into
dev-v2from
pr@dev-v2@agent

Conversation

@zhengkunwang223

Copy link
Copy Markdown
Member

No description provided.

Copilot AI lite review requested due to automatic review settings August 5, 2026 08:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR improves website template handling by ensuring multi-file templates have an uploaded ZIP both in the UI form validation and on the agent service layer, and it also updates frontend route allowlisting and a small UI text component usage.

Changes:

  • Add filePath form validation for multi-type website templates and clear validation after successful ZIP upload.
  • Add backend validation to reject multi-type template create/update requests when the ZIP path is missing, and improve missing-file error details.
  • Register /websites/templates as a recognized frontend route; update an AI agents UI label to use <el-text>.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
frontend/src/views/website/template/operate/index.vue Adds filePath prop/rules for multi template ZIP upload and clears validation after upload.
frontend/src/views/ai/agents/model/add/index.vue Replaces a plain <span> label with <el-text> for consistent Element Plus typography.
core/constant/common.go Adds /websites/templates to the frontend path allowlist map.
agent/app/service/website_template.go Adds server-side validation for multi template ZIP paths and improves file-not-found error naming.

馃挕 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frontend/src/views/website/template/operate/index.vue
Comment thread agent/app/service/website_template.go
@wanghe-fit2cloud
wanghe-fit2cloud merged commit e01fb7c into dev-v2 Aug 5, 2026
4 checks passed
@wanghe-fit2cloud
wanghe-fit2cloud deleted the pr@dev-v2@agent branch August 5, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants