| | |
| | | }); |
| | | |
| | | const fileList = computed(() => { |
| | | return Object.keys(fileContet).map((item, index) => { |
| | | if (parseInt(fileContet[item].version) !== 0) { |
| | | return Object.keys(fileContet.value).map((item, index) => { |
| | | if (parseInt(fileContet.value[item].version) !== 0) { |
| | | return { |
| | | name: item, |
| | | path: computedRequest(fileContet[item].path), |
| | | version: fileContet[item].version |
| | | path: computedRequest(fileContet.value[item].path), |
| | | version: fileContet.value[item].version |
| | | } |
| | | } |
| | | }).filter(item => item) |
| | |
| | | * @param {string} str |
| | | */ |
| | | const computedRequest = (str) => { |
| | | if (!str) { |
| | | return "" |
| | | } |
| | | let res = str.trim(); |
| | | return res.startsWith("http") |
| | | ? res |