@@ -152,9 +152,9 @@ export default { | |||||
selectPlan: "SELECT PLAN", | selectPlan: "SELECT PLAN", | ||||
WeChatPay: "WeChatPay", | WeChatPay: "WeChatPay", | ||||
Alipay: "Alipay", | Alipay: "Alipay", | ||||
score:'Credit', | |||||
score:'Credits', | |||||
day:'day', | day:'day', | ||||
second:'second', | |||||
second:'seconds', | |||||
yes:'yes', | yes:'yes', | ||||
no:'no', | no:'no', | ||||
InviteGetscore:'Invite users to get score', | InviteGetscore:'Invite users to get score', | ||||
@@ -25,6 +25,7 @@ const request = axios.create({ | |||||
// 请求拦截器 | // 请求拦截器 | ||||
request.interceptors.request.use( | request.interceptors.request.use( | ||||
function (config) { | function (config) { | ||||
// 给所有授权的请求提供token | // 给所有授权的请求提供token | ||||
const AccessToken = localStorage.getItem("AccessToken") | const AccessToken = localStorage.getItem("AccessToken") | ||||
@@ -1035,7 +1035,9 @@ async function chooseStyle() { | |||||
} | } | ||||
// 根据ageType返回年龄 | // 根据ageType返回年龄 | ||||
function returnAge(ageType) { | function returnAge(ageType) { | ||||
if (ageType == 1) { | |||||
if (!ageType) { | |||||
return ""; | |||||
} else if (ageType == 1) { | |||||
if (lanChange.value == "zh-cn") { | if (lanChange.value == "zh-cn") { | ||||
return " 儿童"; | return " 儿童"; | ||||
} else { | } else { | ||||
@@ -1412,6 +1414,7 @@ async function saveOrUpdate(index, isSaveVideo) { | |||||
? `视频时长预估失败,无法生成视频,您可以换个声音试试` | ? `视频时长预估失败,无法生成视频,您可以换个声音试试` | ||||
: `Video duration estimation failed, can not generate video, you can try to change the sound` | : `Video duration estimation failed, can not generate video, you can try to change the sound` | ||||
); | ); | ||||
return; | |||||
} | } | ||||
ElMessage.success( | ElMessage.success( | ||||
lanChange.value == "zh-cn" | lanChange.value == "zh-cn" | ||||