龚成明 3 yıl önce
ebeveyn
işleme
651230c59a
3 değiştirilmiş dosya ile 6 ekleme ve 6 silme
  1. 1 1
      package.json
  2. 3 3
      src/components/History.vue
  3. 2 2
      upload

+ 1 - 1
package.json

@@ -6,7 +6,7 @@
     "serve": "vue-cli-service serve",
     "build": "vue-cli-service build",
     "lint": "vue-cli-service lint",
-    "upload": "sudo scp -i ~/Desktop/no1.pem -r /Volumes/Code/Customer/410/ethereum_viewer_webapp/dist centos@44.201.61.85:/eth_node/web/webapps/ethereum_viewer_webapp"
+    "upload": "sudo scp -i ~/Desktop/no1.pem -r /Volumes/Code/Customer/410/ethereum_viewer_webapp/dist ec2-user@3.227.34.41:/webapp/frontend"
   },
   "dependencies": {
     "@mdi/font": "^5.6.55",

+ 3 - 3
src/components/History.vue

@@ -119,7 +119,7 @@
         <template v-slot:item.hash="{ item }">
           <v-chip
               label
-              :href="'https://etherscan.io/tx/' + item.hash"
+              :href="'https://www.oklink.com/en/ethw/tx/' + item.hash"
               target="_blank"
           >
             {{ getSimpleStr2(item.hash) + '..'  }}
@@ -417,9 +417,9 @@
       },
       jump (pairAddress, type) {
         if (type === 'token') {
-          window.open('https://etherscan.io/token/' + pairAddress)
+          window.open('https://www.oklink.com/en/ethw/token/' + pairAddress)
         } else {
-          window.open('https://etherscan.io/address/' + pairAddress)
+          window.open('https://www.oklink.com/en/ethw/address/' + pairAddress)
         }
       },
       changeShowBlock (item, openSnackbar) {

+ 2 - 2
upload

@@ -1,5 +1,5 @@
-scp -i no1.pem -r /Volumes/Code/Customer/410/ethereum_viewer_webapp/dist centos@44.201.61.85:/eth_node/web/webapps/ethereum_viewer_webapp
-scp -i no1.pem /Volumes/Code/Customer/410/ethereum_viewer_webapp/nginx.conf centos@44.201.61.85:/etc/nginx
+sudo scp -i ~/Desktop/no1.pem -r /Volumes/Code/Customer/410/ethereum_viewer_webapp/dist ec2-user@3.227.34.41:/webapp/frontend
+scp -i no1.pem /Volumes/Code/Customer/410/ethereum_viewer_webapp/nginx.conf ec2-user@3.227.34.41:/etc/nginx
 
 start:
 systemctl start nginx