Commit 4cdf4a6b by 杨明

fixed

1 parent 86df21d1
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn * @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-19 13:46:20 * @Date: 2023-05-19 13:46:20
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-22 10:47:05 * @LastEditTime: 2023-05-23 10:14:30
* @FilePath: \scrm-micro-home\src\mixins\gpt.js * @FilePath: \scrm-micro-home\src\mixins\gpt.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -25,12 +25,14 @@ export default { ...@@ -25,12 +25,14 @@ export default {
}, },
methods: { methods: {
getGPTitle(type) { getGPTitle(type) {
const len = this.GPTList.mainTitles.length
console.log(len)
if (type == 1) { if (type == 1) {
this.editForm.marketingTitle = this.GPTList.mainTitles[this.t1].title this.editForm.marketingTitle = this.GPTList.mainTitles[this.t1 % len].title
this.t1++ this.t1++
} }
if (type == 2) { if (type == 2) {
this.editForm.marketingSubtitle = this.GPTList.subTitles[this.t2].title this.editForm.marketingSubtitle = this.GPTList.subTitles[this.t2 % len].title
this.t2++ this.t2++
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!