Ver código fonte

测试环境部署脚本

longmh 10 meses atrás
pai
commit
a8ea37367d
4 arquivos alterados com 16 adições e 9 exclusões
  1. 1 1
      .env.development
  2. 6 6
      src/api/login.ts
  3. 1 2
      src/views/dgtmedicine/member/detail.vue
  4. 8 0
      test-deploy.ps1

+ 1 - 1
.env.development

@@ -5,7 +5,7 @@ VITE_APP_TITLE = RuoYi-Vue-Plus多租户管理系统
 VITE_APP_ENV = 'development'
 
 # 开发环境
-VITE_APP_BASE_API = '/dev-api'
+VITE_APP_BASE_API = '/api'
 
 # 应用访问路径 例如使用前缀 /admin/
 VITE_APP_CONTEXT_PATH = '/'

+ 6 - 6
src/api/login.ts

@@ -51,12 +51,12 @@ export function register(data: any) {
  * 注销
  */
 export function logout() {
-  if (import.meta.env.VITE_APP_SSE === 'true') {
-    request({
-      url: '/resource/sse/close',
-      method: 'get'
-    });
-  }
+  // if (import.meta.env.VITE_APP_SSE === 'true') {
+  //   request({
+  //     url: '/resource/sse/close',
+  //     method: 'get'
+  //   });
+  // }
   return request({
     url: '/auth/logout',
     method: 'post'

+ 1 - 2
src/views/dgtmedicine/member/detail.vue

@@ -186,8 +186,7 @@
                 <template #default="scope">
                   <el-link :underline="false" type="primary" :href="scope.row.invoiceUrlAddr" target="_blank"
                     v-if="scope.row.invoiceStatus != 0">查看发票</el-link>
-                  <el-button link type="primary" @click="showUploadInvoice(scope.row)"
-                    v-hasPermi="['dgtmedicine:vipPayment:edit']" v-if="scope.row.invoiceStatus == 0">
+                  <el-button link type="primary" @click="showUploadInvoice(scope.row)" v-if="scope.row.invoiceStatus == 0">
                     上传发票
                   </el-button>
                 </template>

+ 8 - 0
test-deploy.ps1

@@ -0,0 +1,8 @@
+$compress = @{
+  Path             = ".\dist\*"
+  CompressionLevel = "Fastest"
+  DestinationPath  = ".\dist\dist.zip"
+}
+Compress-Archive @compress
+scp -P 22211 ./dist/dist.zip root@39.129.90.138:/app/front/digital-medicine-front
+ssh -p 22211 root@39.129.90.138 "cd /app/front/digital-medicine-front && ./deploy.sh"