From 9340e269fc60ffcc1d97a93a0f72814a76e105a6 Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Fri, 24 Jan 2025 14:34:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.js | 31 ++++++++++++++++++++++++------- pages/index/index.vue | 11 +++++++++++ 2 files changed, 35 insertions(+), 7 deletions(-) diff --git a/config.js b/config.js index 4a8cf65..11d10a0 100644 --- a/config.js +++ b/config.js @@ -14,8 +14,11 @@ const config = { dev: { baseUrl: 'http://dev.java996.icu/clockin-api', }, - prod: { + test: { baseUrl: 'https://clockin.java996.icu/clockin-api', + }, + prod: { + baseUrl: 'https://admin.ptchemicalscc.com/clockin-api', } } @@ -24,19 +27,33 @@ const config = { const defaultConfig = { mapKey: 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU', aliOss: { - url: 'https://image.hhlm1688.com/', + url: 'https://image.ptchemicalscc.com/', config: { //桶的地址 - region: 'oss-cn-guangzhou', + region: 'oss-cn-beijing', //id - accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9', + accessKeyId: 'LTAI5tA1mo2mRHVwKLLE2V7Y', //密钥 - accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq', + accessKeySecret: 'PBs2Dx3mTuVSH7ReWkiZGW3Vc9i22I', //桶的名字 - bucket: 'hanhaiimage', - endpoint: 'oss-cn-shenzhen.aliyuncs.com', + bucket: 'ptchemicalscc', + endpoint: 'oss-cn-beijing.aliyuncs.com', } }, + // aliOss: { + // url: 'https://image.hhlm1688.com/', + // config: { + // //桶的地址 + // region: 'oss-cn-guangzhou', + // //id + // accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9', + // //密钥 + // accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq', + // //桶的名字 + // bucket: 'hanhaiimage', + // endpoint: 'oss-cn-shenzhen.aliyuncs.com', + // } + // }, } diff --git a/pages/index/index.vue b/pages/index/index.vue index 95bebd1..a181eba 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -49,6 +49,9 @@ + @@ -75,6 +78,7 @@ covers: [], inter : null, date : this.$dayjs(), + image : '', } }, computed : { @@ -100,6 +104,13 @@ url: "/pages/subPack/record/record" }) }, + upload(){ + this.$Oss.ossUploadImage({ + success : url => { + this.image = url + } + }) + }, //打开侧边栏 openBroadside() {