路由图标设置bug修复

pull/1/head
wangpeng 2024-02-05 15:41:58 +08:00
parent a9cd77fe57
commit 08c80e7c91
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,6 @@
</template> </template>
<script> <script>
import waves from '@/directive/waves' import waves from '@/directive/waves'
import { requestFN } from '@/utils/request'
export default { export default {
directives: { waves }, directives: { waves },
props: { props: {

View File

@ -488,11 +488,13 @@ export default {
}, },
confirmIcon() { confirmIcon() {
this.listLoading = true this.listLoading = true
console.log(this.iconDialog.iconIndex)
console.log(this.iconDialog.svgList[this.iconDialog.iconIndex].name)
requestFN( requestFN(
'/route/icon', '/route/icon',
{ {
ROUTE_ID: this.ROUTE_ID, ROUTE_ID: this.ROUTE_ID,
ICON: this.iconDialog.iconIndex ICON: this.iconDialog.iconIndex !== ''
? this.iconDialog.svgList[this.iconDialog.iconIndex].name ? this.iconDialog.svgList[this.iconDialog.iconIndex].name
: '' : ''
} }