Skip to content

Commit

Permalink
更新样式
Browse files Browse the repository at this point in the history
  • Loading branch information
more-strive committed Sep 12, 2024
1 parent 97160e3 commit 5e66e1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/template/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const getTemplateDetailPages = (params: PageParams): AxiosPromise<Templat
})
}

export const getTemplateData = (pk: number): AxiosPromise<TemplateInfo> => {
export const getTemplateData = (pk: string): AxiosPromise<TemplateInfo> => {
return request({
url: `/api/design/template/data/${pk}`,
method: 'get',
Expand Down
4 changes: 2 additions & 2 deletions src/views/Editor/CanvasContent/CanvasCenter/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const remDrawAreaFocus = () => {
if (drawAreaFocus.value) mainStore.setDrawAreaFocus(false)
}
const getTemplateDetail = async (pk: number) => {
const getTemplateDetail = async (pk: string) => {
const result = await getTemplateData(pk)
if (result.data && result.data.code === 200 && result.data.data) {
try {
Expand All @@ -57,7 +57,7 @@ const getTemplateDetail = async (pk: number) => {
}
}
const initRouter = async (templateId?: number) => {
const initRouter = async (templateId?: string) => {
if (templateId) {
templatesStore.setTemplateId(templateId)
const loadingInstance = ElLoading.service({ fullscreen: true, background: 'rgba(122, 122, 122, 0.5)' })
Expand Down

0 comments on commit 5e66e1c

Please sign in to comment.