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