更新运行时资源查找路径
This commit is contained in:
@@ -161,10 +161,10 @@
|
||||
<a-card :title="t('字体目录')" :bordered="false">
|
||||
<a-descriptions :column="1" bordered>
|
||||
<a-descriptions-item :label="t('预置字体目录')">
|
||||
<code class="text-xs">fonts/bundled/</code>
|
||||
<code class="text-xs">packaging/vendor/fonts/bundled/</code>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item :label="t('ziti字体目录')">
|
||||
<code class="text-xs">ziti/</code>
|
||||
<code class="text-xs">packaging/vendor/ziti/</code>
|
||||
<a-button size="mini" type="text" @click="openZitiDir" class="ml-2">
|
||||
<template #icon>
|
||||
<icon-folder />
|
||||
@@ -429,7 +429,7 @@ const openFontDir = async () => {
|
||||
const openZitiDir = async () => {
|
||||
try {
|
||||
const path = require('path');
|
||||
const zitiPath = path.join(process.cwd(), 'ziti');
|
||||
const zitiPath = path.join(process.cwd(), 'packaging', 'vendor', 'ziti');
|
||||
console.log('打开 ziti 目录:', zitiPath);
|
||||
|
||||
// 🔧 使用 $mapi 代替直接 require('electron')
|
||||
|
||||
Reference in New Issue
Block a user