功能:统一相对路径导入 fileSize 工具,修复打包别名解析问题
- 将 '@/utils/fileSize' 全部改为相对路径导入,兼容打包环境 - 修复 store 与页面中别名解析失败导致的模块找不到问题 - 保持逻辑不变,仅调整导入路径,降低打包风险
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
// import { getAllList, getChatList, bindId, chatBegin } from '@/api/message'
|
||||
import { getCurrentOSDiscTypes } from '@/utils/fileSize'
|
||||
let timeouter = null
|
||||
let websock = null
|
||||
|
||||
@@ -130,7 +129,8 @@ const CDTypes = {
|
||||
6: 'BD_TL',
|
||||
7: 'BD_QL'
|
||||
}
|
||||
// 使用跨平台文件大小计算
|
||||
// 使用跨平台文件大小计算(相对路径)
|
||||
const { getCurrentOSDiscTypes } = require('../../utils/fileSize')
|
||||
const cd_types = getCurrentOSDiscTypes()
|
||||
|
||||
const defaultData = {
|
||||
|
||||
@@ -341,7 +341,6 @@ import { mapGetters } from 'vuex'
|
||||
const { app, dialog } = require('@electron/remote')
|
||||
import UserInfo from '@/components/userInfo/userInfo.vue'
|
||||
import WorkAdd from '@/components/workAdd/workAdd.vue'
|
||||
import { getCurrentOSDiscTypes } from '@/utils/fileSize'
|
||||
const exePath = !app.isPackaged ? process.cwd() : path.dirname(process.execPath)
|
||||
const shPath = path.join(exePath, 'CardsoonServer', 'control.sh')
|
||||
const activePath = path.join(exePath, 'CardsoonServer', 'regist.sh')
|
||||
@@ -972,6 +971,7 @@ export default {
|
||||
that.currentRunVal = 0
|
||||
|
||||
// 使用跨平台文件大小计算(相对路径)
|
||||
const { getCurrentOSDiscTypes } = require('../../utils/fileSize')
|
||||
let typeLists = getCurrentOSDiscTypes()
|
||||
let isBD = that.changeCD.req_info.strong_list.findIndex(item => parseInt(item.strong_type) > 3)
|
||||
if (isBD === -1) {
|
||||
|
||||
Reference in New Issue
Block a user