LaiTool V3.0.1-preview.2
This commit is contained in:
@@ -452,21 +452,21 @@ export default defineComponent({
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
label: () =>
|
||||
h(
|
||||
RouterLink,
|
||||
{
|
||||
to: {
|
||||
name: 'test_options'
|
||||
}
|
||||
},
|
||||
{
|
||||
default: () => '测试操作'
|
||||
}
|
||||
),
|
||||
key: 'test_options'
|
||||
},
|
||||
// {
|
||||
// label: () =>
|
||||
// h(
|
||||
// RouterLink,
|
||||
// {
|
||||
// to: {
|
||||
// name: 'test_options'
|
||||
// }
|
||||
// },
|
||||
// {
|
||||
// default: () => '测试操作'
|
||||
// }
|
||||
// ),
|
||||
// key: 'test_options'
|
||||
// },
|
||||
{
|
||||
label: () =>
|
||||
h(
|
||||
|
||||
@@ -154,7 +154,6 @@ export default defineComponent({
|
||||
await window.mj.SaveTagPropertyData(
|
||||
[JSON.stringify(styleData.value), 'style_tags'],
|
||||
(value) => {
|
||||
|
||||
console.log(value)
|
||||
if (value.code == 0) {
|
||||
message.error(value.message)
|
||||
@@ -217,8 +216,7 @@ export default defineComponent({
|
||||
]
|
||||
}
|
||||
let rules = {
|
||||
label: ruleObj('必填人物名称'),
|
||||
prompt: ruleObj('必填英文提示词')
|
||||
label: ruleObj('必填人物名称')
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -246,7 +244,6 @@ export default defineComponent({
|
||||
}
|
||||
imageLoading.value = true
|
||||
await window.sd.txt2img(JSON.stringify([d]), async (value) => {
|
||||
|
||||
if (value.code == 0) {
|
||||
message.error(value.message)
|
||||
imageLoading.value = false
|
||||
|
||||
@@ -1016,7 +1016,9 @@ export default defineComponent({
|
||||
for (let i = 0; i < promptStore.GetSelectStyle.length; i++) {
|
||||
const element = promptStore.GetSelectStyle[i]
|
||||
if (element.type == 'style_main') {
|
||||
style_string += element.prompt + ', '
|
||||
if (element.prompt) {
|
||||
style_string += element.prompt + ', '
|
||||
}
|
||||
if (element.lora && element.lora != '无' && element.lora_weight) {
|
||||
style_string += `<lora:${element.lora}:${element.lora_weight}>, `
|
||||
}
|
||||
@@ -1114,7 +1116,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
console.log(prompt_str)
|
||||
prompt_str = prompt_str.replace('${style}', style_str)
|
||||
prompt_str = prompt_str.replace('${style}', style_str ? style_str : '')
|
||||
prompt_str = prompt_str.replace('${character}', character_string)
|
||||
prompt_str = prompt_str.replace('${scene}', scene_string)
|
||||
prompt_str = prompt_str.replace(
|
||||
@@ -1139,7 +1141,9 @@ export default defineComponent({
|
||||
for (let i = 0; i < promptStore.GetSelectStyle.length; i++) {
|
||||
const element = promptStore.GetSelectStyle[i]
|
||||
if (element.type == 'style_main') {
|
||||
style_str += element.prompt + ', '
|
||||
if (element.prompt) {
|
||||
style_str += element.prompt + ', '
|
||||
}
|
||||
} else {
|
||||
style_str += element.english_style + ', '
|
||||
}
|
||||
|
||||
@@ -91,6 +91,7 @@
|
||||
<n-input
|
||||
type="password"
|
||||
placeholder="请输入密钥"
|
||||
show-password-on="mousedown"
|
||||
v-model:value="mjSetting.apiSetting.apiKey"
|
||||
></n-input>
|
||||
</n-form-item>
|
||||
|
||||
@@ -475,8 +475,8 @@ export default defineComponent({
|
||||
value: LaiAPIType.HK_PROXY
|
||||
},
|
||||
{
|
||||
label: '香港站点',
|
||||
value: LaiAPIType.HK_PROXY
|
||||
label: '备用主站点',
|
||||
value: LaiAPIType.BAK_MAIN
|
||||
}
|
||||
],
|
||||
translation_options: [
|
||||
|
||||
@@ -125,7 +125,7 @@ export default defineComponent({
|
||||
// 判断当前选中的数据是不是设置完善
|
||||
let selectModel = translateSetting.value.selectModel
|
||||
let settingIndex = translateSetting.value.translates.findIndex(
|
||||
(item) => (item.name = selectModel)
|
||||
(item) => (item.name == selectModel)
|
||||
)
|
||||
if (settingIndex < 0) {
|
||||
message.error('未找到选中的数据,请检查')
|
||||
|
||||
@@ -138,6 +138,7 @@ export default defineComponent({
|
||||
let audioUrl = ref(null)
|
||||
|
||||
onMounted(async () => {
|
||||
debugger
|
||||
ttsOptions.value = GetTTSSelect()
|
||||
|
||||
// 加载服务端的TTS配置(目前的TTS配置是全局的)
|
||||
|
||||
Reference in New Issue
Block a user