-
-
- 1创建模版
+
+
+
-
- 2编辑版本
-
-
- 3上传图片
-
-
-
-
-
diff --git a/app/pages/publish-workflow/index.vue b/app/pages/publish-workflow/index.vue
index d388b52..960975c 100644
--- a/app/pages/publish-workflow/index.vue
+++ b/app/pages/publish-workflow/index.vue
@@ -1,101 +1,95 @@
@@ -106,7 +100,11 @@ const timeLineList = ref([
-
+
添加版本
@@ -118,7 +116,12 @@ const timeLineList = ref([
-
+
diff --git a/app/pages/work-square.vue b/app/pages/work-square.vue
new file mode 100644
index 0000000..f90fd85
--- /dev/null
+++ b/app/pages/work-square.vue
@@ -0,0 +1,188 @@
+
+
+
+
+
+
+
+
+ {{ item.dictLabel }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/pages/workflow-details/[id].vue b/app/pages/workflow-details/[id].vue
index b48d6e2..73df4cc 100644
--- a/app/pages/workflow-details/[id].vue
+++ b/app/pages/workflow-details/[id].vue
@@ -2,11 +2,9 @@
import { Heart, PersonAddOutline } from '@vicons/ionicons5'
import {
- CircleUser,
- Download,
- EllipsisVertical,
- HardDriveUpload,
- Play,
+CircleUser,
+Download,
+EllipsisVertical, Play
} from 'lucide-vue-next'
import { NConfigProvider, NMessageProvider } from 'naive-ui'
import { nextTick, ref } from 'vue'
@@ -64,6 +62,7 @@ async function getInfo() {
catch (error) {
console.log(error)
}
+ getAttention()
}
}
catch (error) {
@@ -89,7 +88,7 @@ const selectUserInfo = ref
({
// 获取点赞粉丝等的数量
async function getAttention() {
try {
- const res = await request.get('/attention/selectUserInfo')
+ const res = await request.get(`/attention/selectUserInfo?userId=${detailsInfo.value.userId}`)
if (res.code === 200) {
selectUserInfo.value = res.data
}
@@ -98,7 +97,6 @@ async function getAttention() {
console.log(err)
}
}
-getAttention()
// 举报/编辑/删除
const isDelete = ref(false)
@@ -361,21 +359,21 @@ async function onLike() {
class="h-[12px] w-[12px] text-black menu-icon m-1 text-[#969798] m-0"
/>
{{ selectUserInfo.bean }}
-
- 2
+ 2 -->
- {{ detailsInfo.useNumber }}
+ {{ selectUserInfo.modelRunNum }}
- {{ detailsInfo.downloadNumber }}
+ {{ selectUserInfo.modelDownloadNum }}
@@ -411,7 +409,7 @@ async function onLike() {
:mask-closable="false"
preset="dialog"
title="提示!"
- content="确定要将模型删除? 模型删除后无法找回"
+ content="确定要将工作流删除? 工作流删除后无法找回"
negative-text="取消"
positive-text="确认"
@negative-click="onDelete"
diff --git a/app/stores/menu.ts b/app/stores/menu.ts
index 082e6fd..9f7c8b3 100644
--- a/app/stores/menu.ts
+++ b/app/stores/menu.ts
@@ -4,8 +4,10 @@ export const useMenuStore = defineStore('menu', () => {
const activeMenu = ref('/model-square')
const menuItems = [
{ path: '/model-square', icon: 'i-carbon-gallery', label: '模型广场' },
+ { path: '/picture-square', icon: 'i-carbon-light-filled', label: '作品灵感' },
// { path: '/works-inspire', icon: 'i-carbon-light-filled', label: '作品灵感' },
- // { path: '/workspace', icon: 'i-carbon-workspace', label: '工作台' },
+ // { path: '/workspace', icon: 'i-carbon-workspace', label: '工作流' },
+ { path: '/work-square', icon: 'i-carbon-workspace', label: '工作流' },
// { path: '/web-ui', icon: 'i-carbon-image-search', label: '在线生图' },
// { path: '/comfy-ui', icon: 'i-carbon-image-search', label: '在线工作流' },
// { path: '/training-lora', icon: 'i-carbon-machine-learning', label: '训练LoRA' },
diff --git a/app/utils/request.ts b/app/utils/request.ts
index d37564d..0baf91f 100644
--- a/app/utils/request.ts
+++ b/app/utils/request.ts
@@ -100,7 +100,7 @@ class RequestHttp {
message.error('请求参数错误')
break
case 401:
- message.error('未登录或登录已过期')
+ // message.error('未登录或登录已过期')
break
case 403:
message.error('没有权限')
@@ -108,9 +108,9 @@ class RequestHttp {
case 404:
message.error('请求的资源不存在')
break
- case 500:
- message.error('服务器错误')
- break
+ // case 500:
+ // message.error('服务器错误')
+ // break
default:
message.error('未知错误')
}
diff --git a/netlify.toml b/netlify.toml
old mode 100755
new mode 100644
diff --git a/nuxt.config.ts b/nuxt.config.ts
index 3bdae95..5a57bda 100644
--- a/nuxt.config.ts
+++ b/nuxt.config.ts
@@ -84,8 +84,8 @@ export default defineNuxtConfig({
devProxy: {
'/api': {
// target: 'http://1.13.246.108:8080', // 线上
- target: 'http://192.168.2.10:8080', // 代
- // target: 'http://192.168.1.69:8080', // 嗨
+ // target: 'http://192.168.2.10:8080', // 代
+ target: 'http://192.168.1.69:8080', // 嗨
// target: 'https://2d1a399f.r27.cpolar.top', // 嗨
changeOrigin: true,
prependPath: true,