fix 修改详情触发两次接口 数据库订阅添加字段

This commit is contained in:
Theluyuan 2023-07-12 15:01:07 +08:00
parent e8cd3f20ba
commit 213130a207
3 changed files with 1 additions and 2 deletions

Binary file not shown.

View File

@ -1,5 +1,4 @@
const axios = require("axios") const axios = require("axios")
const puppeteer = require("puppeteer")
const cheerio = require("cheerio"); // HTML页面解析 const cheerio = require("cheerio"); // HTML页面解析
async function search(name) { async function search(name) {
const list = await axios.get(`https://movie.douban.com/j/subject_suggest?q=${name}`, { const list = await axios.get(`https://movie.douban.com/j/subject_suggest?q=${name}`, {

View File

@ -9,7 +9,7 @@
<span>{{ i.title }}({{ i.year }})</span> <span>{{ i.title }}({{ i.year }})</span>
<div class="bottom"> <div class="bottom">
<time class="time">类型{{ i.type }}</time> <time class="time">类型{{ i.type }}</time>
<el-button text class="button" @click="getInfo(i.id)">详情</el-button> <el-button text class="button" >详情</el-button>
</div> </div>
</div> </div>
</el-card> </el-card>