Skip to content

Commit

Permalink
Merge pull request #107 from MuxiKeStack/spzy-dev
Browse files Browse the repository at this point in the history
🐞 fix:修復 iconfont 組件圖標丟失
  • Loading branch information
BlackishGreen33 authored Sep 2, 2024
2 parents a289894 + b404a03 commit f29e768
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// import { useGlobalIconFont } from './common/components/iconfont/helper';

export default defineAppConfig({
pages: [
// 'pages/questionInfo/index',
Expand All @@ -24,8 +22,10 @@ export default defineAppConfig({
pages: ['pages/history/index'],
},
],
/* eslint-disable */
// usingComponents: Object.assign(useGlobalIconFont()),
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
usingComponents: Object.assign({
iconfont: './common/components/iconfont/weapp/weapp',
}),
tabBar: {
custom: true,
list: [
Expand Down
2 changes: 1 addition & 1 deletion src/common/components/iconfont/helper.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable */
const useGlobalIconFont = () => {
return {
iconfont: `common/components/iconfont/${process.env.TARO_ENV}/${process.env.TARO_ENV}`,
iconfont: `common/components\iconfont/${process.env.TARO_ENV}/${process.env.TARO_ENV}`,
};
};

Expand Down
1 change: 1 addition & 0 deletions src/common/components/iconfont/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/* tslint:disable */
/* eslint-disable */

import React, { FunctionComponent } from 'react';

Expand Down

0 comments on commit f29e768

Please sign in to comment.