技术文档
This commit is contained in:
parent
144e80ef5e
commit
6c2db1ee8a
|
@ -62,7 +62,7 @@
|
|||
|
||||
<script setup>
|
||||
import DetalsTitle from '@/views/detailsAll/components/DetalsTitle'
|
||||
import { pinyin } from 'pinyin-pro'
|
||||
// import { pinyin } from 'pinyin-pro'
|
||||
import { ref, defineProps, watch } from 'vue'
|
||||
let dataFrom = ref({
|
||||
title: '使用方式',
|
||||
|
@ -152,14 +152,16 @@
|
|||
}
|
||||
)
|
||||
function technical() {
|
||||
|
||||
console.log('技术文档', dataFrom.value.link)
|
||||
window.open(dataFrom.value.link)
|
||||
// 拼接路径
|
||||
const type = pinyin(props.dataList.type, {
|
||||
pattern: 'initial',
|
||||
}).replace(/\s*/g, '')
|
||||
// 打开文档
|
||||
const id = props.dataList.id
|
||||
window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank')
|
||||
// const type = pinyin(props.dataList.type, {
|
||||
// pattern: 'initial',
|
||||
// }).replace(/\s*/g, '')
|
||||
// // 打开文档
|
||||
// const id = props.dataList.id
|
||||
// window.open(window.SITE_CONFIG.frontUrl + type + '/' + id + '.md', '_blank')
|
||||
// window.open()
|
||||
// console.log('dataFrom.value.link', dataFrom.value.link)
|
||||
// window.open(
|
||||
// window.SITE_CONFIG.previewUrl +
|
||||
|
|
Loading…
Reference in New Issue