perf: 优化搜索

This commit is contained in:
jmal 2024-07-16 09:48:40 +08:00
parent 2da4d65098
commit 16bd225535
2 changed files with 2011 additions and 1923 deletions

View File

@ -0,0 +1,61 @@
<template>
<div>
<el-dialog style="{'font-weight': 600}" :visible.sync="searchDialogVisible" @close="searchDialogClose">
<div>
</div>
</el-dialog>
</div>
</template>
<script>
import IconFile from "@/components/Icon/IconFile";
import Icon from "@/components/Icon/Icon.vue";
export default {
name: "SearchDialog",
components: {
Icon,
IconFile
},
props: {
status: {
type: Boolean,
default: false
}
},
data() {
return {
imageUrl: `${process.env.VUE_APP_BASE_API}/view/thumbnail?jmal-token=${this.$store.state.user.token}&name=${this.$store.state.user.name}&id=`,
audioCoverUrl: `${process.env.VUE_APP_BASE_API}/view/cover?jmal-token=${this.$store.state.user.token}&name=${this.$store.state.user.name}&id=`,
searchDialogVisible: false,
}
},
computed: {
},
watch: {
status(visible) {
if (visible) {
this.searchDialogVisible = true
}
}
},
methods: {
searchDialogClose() {
this.$emit('update:status', this.searchDialogVisible)
}
}
}
</script>
<style lang="scss" scoped>
>>> .el-dialog {
max-width: 460px;
.el-dialog__title {
font-weight: 600;
}
}
</style>

File diff suppressed because it is too large Load Diff