fix: 新需求
This commit is contained in:
parent
5a0edc320a
commit
809b47215c
|
|
@ -0,0 +1,28 @@
|
|||
.DS_Store
|
||||
node_modules/
|
||||
unpackage
|
||||
/dist/
|
||||
/manager/dist/
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
/test/unit/coverage/
|
||||
/test/e2e/reports/
|
||||
selenium-debug.log
|
||||
nodejs/public/uploads
|
||||
admin-ui/dist.zip
|
||||
portal-ui/dist.zip
|
||||
# Editor directories and files
|
||||
.idea
|
||||
.vscode
|
||||
*.suo
|
||||
*.ntvs*
|
||||
*.njsproj
|
||||
*.sln
|
||||
package-lock.json
|
||||
.history
|
||||
/unpackage/resources/
|
||||
/unpackage/dist/dev
|
||||
/unpackage/dist/build/.automator
|
||||
/unpackage/dist/build/app-plus
|
||||
*.lock
|
||||
|
|
@ -5,4 +5,4 @@ VUE_APP_TITLE = 管理系统
|
|||
ENV = 'production'
|
||||
|
||||
# 若依管理系统/生产环境
|
||||
VUE_APP_BASE_API = 'https://admin-api.undressing.name'
|
||||
VUE_APP_BASE_API = 'http://47.86.170.114:8011'
|
||||
|
|
|
|||
|
|
@ -4,3 +4,4 @@ VITE_AMAP_SAFE_KEY = 23d3fdbc6b4eaf65d4a82a16510938c9
|
|||
VITE_REGISTER_SOURCE = ALL
|
||||
#VITE_REGISTER_SOURCE = XM001
|
||||
VITE_SHOW_PAY = SUCCESS
|
||||
VITE_API_URL = http://47.86.170.114:8011/api
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
# 端口
|
||||
VITE_PORT = 8887
|
||||
VITE_API_URL = https://api.undressing.name/api
|
||||
VITE_API_URL = http://47.86.170.114:8011/api
|
||||
|
|
@ -8,10 +8,6 @@
|
|||
fullscreen
|
||||
:class="`${prefixCls}-wrapper`"
|
||||
:modal-class="`${prefixCls}-dialog`">
|
||||
<mf-video
|
||||
autoplay
|
||||
:controls="false"
|
||||
modelValue="https://images.iqyjsnwv.com/tmp/hello-BCSGJ8fP.mp4" />
|
||||
<div :class="`${prefixCls}-shadow`">
|
||||
<div :class="`${prefixCls}-title`">
|
||||
{{ $t('common.fbTitle') }}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ const messages = i18n.global.messages[lang];
|
|||
* @desc 创建axios实例
|
||||
*/
|
||||
const service = axios.create({
|
||||
// baseURL: process.env.VUE_APP_BASE_API,
|
||||
baseURL: process.env.VUE_APP_BASE_API,
|
||||
withCredentials: import.meta.env.MODE === 'development',
|
||||
timeout: 600 * 1000
|
||||
})
|
||||
|
|
|
|||
|
|
@ -68,6 +68,19 @@
|
|||
</a-radio>
|
||||
</a-radio-group>
|
||||
</div>
|
||||
<!-- 模型选择 -->
|
||||
<div class="model-select">
|
||||
<div class="model-title">{{ $t('common.selectModel') || '选择模型' }}</div>
|
||||
<a-select v-model="selectedModel" style="width: 100%;">
|
||||
<a-option
|
||||
v-for="option in modelOptions"
|
||||
:key="option.value"
|
||||
:value="option.value">
|
||||
{{ option.label }}
|
||||
</a-option>
|
||||
</a-select>
|
||||
</div>
|
||||
|
||||
<!-- <div class="text">
|
||||
<a-textarea
|
||||
v-model="text"
|
||||
|
|
@ -202,7 +215,13 @@ export default {
|
|||
templateLoading: false,
|
||||
selectedTemplate: null,
|
||||
selectedTemplatePreview: '', // 选中的模版预览图URL
|
||||
maxPollAttempts: 40 // 最大轮询次数(3秒 * 40 = 120秒超时)
|
||||
maxPollAttempts: 40, // 最大轮询次数(3秒 * 40 = 120秒超时)
|
||||
// 模型选择
|
||||
modelOptions: [
|
||||
{ label: 'Seedance 2.0', value: 'ep-20260326165811-dlkth' },
|
||||
{ label: 'Seedance 2.0 Fast', value: 'ep-20260326170056-dkj9m' }
|
||||
],
|
||||
selectedModel: 'ep-20260326165811-dlkth'
|
||||
}
|
||||
},
|
||||
beforeUnmount() {
|
||||
|
|
@ -479,7 +498,8 @@ export default {
|
|||
let params = {
|
||||
text: this.text,
|
||||
firstUrl: firstImageUrl,
|
||||
functionType: '21'
|
||||
functionType: '21',
|
||||
model: this.selectedModel // 新增模型参数
|
||||
}
|
||||
if (this.lastUrl && this.lastUrl.url) {
|
||||
params.lastUrl = this.lastUrl.url
|
||||
|
|
@ -601,8 +621,23 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.upload {
|
||||
margin-bottom: 20px;
|
||||
.upload {
|
||||
margin-bottom: 20px;
|
||||
|
||||
.model-select {
|
||||
margin-bottom: 20px;
|
||||
|
||||
.model-title {
|
||||
color: #fff;
|
||||
margin-bottom: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
:deep(.arco-select) {
|
||||
background-color: #1a1b20;
|
||||
border-color: rgba(255,255,255,0.1);
|
||||
}
|
||||
}
|
||||
&-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
|||
|
|
@ -61,6 +61,19 @@
|
|||
</a-radio>
|
||||
</a-radio-group>
|
||||
</div>
|
||||
<!-- 模型选择 -->
|
||||
<div class="model-select">
|
||||
<div class="model-title">{{ $t('common.selectModel') || '选择模型' }}</div>
|
||||
<a-select v-model="selectedModel" style="width: 100%;">
|
||||
<a-option
|
||||
v-for="option in modelOptions"
|
||||
:key="option.value"
|
||||
:value="option.value">
|
||||
{{ option.label }}
|
||||
</a-option>
|
||||
</a-select>
|
||||
</div>
|
||||
|
||||
<!-- <div
|
||||
class="text"
|
||||
v-if="current == 2">
|
||||
|
|
@ -179,7 +192,13 @@ export default {
|
|||
templateList: [],
|
||||
templateLoading: false,
|
||||
selectedTemplate: null,
|
||||
selectedTemplatePreview: '' // 选中的模版预览图URL
|
||||
selectedTemplatePreview: '', // 选中的模版预览图URL
|
||||
// 模型选择 - 支持 Seedance 2.0
|
||||
modelOptions: [
|
||||
{ label: 'Seedance 2.0', value: 'ep-20260326165811-dlkth' },
|
||||
{ label: 'Seedance 2.0 Fast', value: 'ep-20260326170056-dkj9m' }
|
||||
],
|
||||
selectedModel: 'ep-20260326165811-dlkth'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
@ -399,7 +418,8 @@ export default {
|
|||
text: this.text,
|
||||
firstUrl: this.firstUrl.url,
|
||||
functionType: this.current == 1 ? '11' : '12',
|
||||
tags: tags.join(',')
|
||||
tags: tags.join(','),
|
||||
model: this.selectedModel // 新增模型参数
|
||||
}
|
||||
})
|
||||
.then((res) => {
|
||||
|
|
@ -493,9 +513,24 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
.upload {
|
||||
.upload {
|
||||
// margin-top: 20px;
|
||||
margin-bottom: 20px;
|
||||
|
||||
.model-select {
|
||||
margin-bottom: 20px;
|
||||
|
||||
.model-title {
|
||||
color: #fff;
|
||||
margin-bottom: 8px;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
:deep(.arco-select) {
|
||||
background-color: #1a1b20;
|
||||
border-color: rgba(255,255,255,0.1);
|
||||
}
|
||||
}
|
||||
&-title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
|
|
|||
Loading…
Reference in New Issue