Purpose há 2 meses atrás
pai
commit
11ceafd014
4 ficheiros alterados com 4 adições e 3 exclusões
  1. 1 0
      package.json
  2. 1 1
      src/components/LogoImageView.vue
  3. 1 1
      src/mock/index.js
  4. 1 1
      src/views/TagCode.vue

+ 1 - 0
package.json

@@ -9,6 +9,7 @@
     "start": "npm run dev",
     "lint": "eslint --ext .js,.vue src",
     "build": "node build/build.js",
+    "build-only": "rm -rf dist && npm run build",
     "build-to-test": "rm -rf dist && npm run build && scp -r dist green-box-public:/mnt/webapp/Jeff.RFID/UI",
     "switch-node-version": "sudo n v14.20.1"
   },

+ 1 - 1
src/components/LogoImageView.vue

@@ -1,5 +1,5 @@
 <template>
-  <img src="@/assets/imgs/logo.png" />
+  <img src="@@/assets/imgs/logo.png" />
 </template>
 
 <script>

+ 1 - 1
src/mock/index.js

@@ -3,7 +3,7 @@ import Mock from 'mockjs'
 // import TagType from '@@/entries/TagType'
 // import TagPurchaseState from '@@/entries/TagPurchaseState'
 // import Provider from '@@/entries/Provider'
-import Constant from '@/utils/Constant'
+import Constant from '@@/utils/Constant'
 
 const API_BASE_PATH = Constant.REQUEST_PREFIX
 

+ 1 - 1
src/views/TagCode.vue

@@ -209,7 +209,7 @@
         <div class="flex center">打印预览</div>
         <div class="flex tag">
           <div class="flex column flex-1 fit-size tag-info">
-            <div class="tag-logo"><img src="@/assets/imgs/logo.png" width="100%" height="100%" /></div>
+            <div class="tag-logo"><img src="@@/assets/imgs/logo.png" width="100%" height="100%" /></div>
             <div class="flex column valign-center tag-materiel-info" :style="{ fontSize: goodsNameFontSize + 'px' }">
               <template v-if="qrData">
                 <div>{{ qrData.goodsName }},</div>