lisiyan 2 years ago
parent
commit
ab30557070

+ 1 - 1
src/components/sideMenu.vue

@@ -40,7 +40,7 @@ export default {
   },
   methods:{
     logout(){
-      get('http://81.68.234.235:8032/pdf-tech/logout').then((res)=>{
+      get('/pdf-tech/logout').then((res)=>{
         if (res.data.code === 200 && res.data.msg == 'success') {
           this.$router.push('login')
         }

+ 7 - 7
src/views/Assignlicense.vue

@@ -17,7 +17,7 @@ export default {
   },
   mounted() {
     //获取团队列表
-    get('http://81.68.234.235:8032/pdf-tech/vppTeam/listWithAdmin').then(
+    get('/pdf-tech/vppTeam/listWithAdmin').then(
       (res) => {
         this.teamList = res.data.result
       }
@@ -31,14 +31,14 @@ export default {
           this.signleProduct = []
           //获取成员列表
           get(
-            'http://81.68.234.235:8032/pdf-tech/vppRTeamMemberRole/listByTeamId?teamId=' +
+            '/pdf-tech/vppRTeamMemberRole/listByTeamId?teamId=' +
               this.signleAssign
           ).then((res) => {
             this.memberList = res.data.result
           })
           //获取产品列表
           get(
-            'http://81.68.234.235:8032/pdf-tech/product/listWithSimpleInfo?teamId=' +
+            '/pdf-tech/product/listWithSimpleInfo?teamId=' +
               this.signleAssign
           ).then((res) => {
             this.productList = res.data.result
@@ -53,14 +53,14 @@ export default {
           this.teamProduct = []
           //获取成员列表
           get(
-            'http://81.68.234.235:8032/pdf-tech/vppRTeamMemberRole/listByTeamId?teamId=' +
+            '/pdf-tech/vppRTeamMemberRole/listByTeamId?teamId=' +
               this.signleAssign
           ).then((res) => {
             this.memberList = res.data.result
           })
           //获取产品列表
           get(
-            'http://81.68.234.235:8032/pdf-tech/product/listWithSimpleInfo?teamId=' +
+            '/pdf-tech/product/listWithSimpleInfo?teamId=' +
               this.teamAssign
           ).then((res) => {
             this.productList = res.data.result
@@ -76,7 +76,7 @@ export default {
       urlencoded.append('teamId', this.signleAssign)
       urlencoded.append('productIds', this.signleProduct)
       post(
-        'http://81.68.234.235:8032/pdf-tech/vppLicenseCode/singleAssign',
+        '/pdf-tech/vppLicenseCode/singleAssign',
         urlencoded
       ).then((res) => {
         if (res.data.code === 200 && res.data.msg == ' Assign Success!') {
@@ -100,7 +100,7 @@ export default {
       urlencoded.append('teamId', this.teamAssing)
       urlencoded.append('productIds', this.teamProduct)
       post(
-        'http://81.68.234.235:8032/pdf-tech/vppLicenseCode/teamAssign',
+        '/pdf-tech/vppLicenseCode/teamAssign',
         urlencoded
       ).then((res) => {
         if (res.data.code === 200 && res.data.msg == ' Assign Success!') {

+ 2 - 2
src/views/Create.vue

@@ -90,7 +90,7 @@ export default {
             if (this.$route.query.teamIds) {
               this.teamIds = this.$route.query.teamIds.split(',')
             }
-            post('http://81.68.234.235:8032/pdf-tech/vppMember/create', {
+            post('/pdf-tech/vppMember/create', {
               email: this.ruleForm.email,
               verifyCode: this.ruleForm.verificationCode,
               username: this.ruleForm.userName,
@@ -154,7 +154,7 @@ export default {
         console.log(this.ruleForm.email)
         //发送邮件
         get(
-          'http://81.68.234.235:8032/pdf-tech/auth/getVerifyCode?action=0&type=0&receiver=' +
+          '/pdf-tech/auth/getVerifyCode?action=0&type=0&receiver=' +
             this.ruleForm.email
         ).then((res) => {
           console.log(res)

+ 7 - 7
src/views/Dashboard.vue

@@ -57,7 +57,7 @@ export default {
   methods: {
     // 获取全局预览数据,不区分产品
     getOverview () {
-      get('http://81.68.234.235:8032/pdf-tech/vppDashboard/getOverview').then((res) => {
+      get('/pdf-tech/vppDashboard/getOverview').then((res) => {
         if (res.data.code === 200) {
           this.overview.totalLicenses = res.data.result.totalLicenses
           this.overview.assignedLicenses = res.data.result.assignedLicenses
@@ -68,7 +68,7 @@ export default {
     },
     // 获取全局预览数据,区分产品
     getOverviewProduct () {
-      get('http://81.68.234.235:8032/pdf-tech/vppDashboard/getOverviewProduct', {
+      get('/pdf-tech/vppDashboard/getOverviewProduct', {
         codeList: this.dataFilterProductSelect
       }).then((res) => {
         Object.keys(this.overviewProduct).forEach(key => (this.overviewProduct[key] = ''))
@@ -89,7 +89,7 @@ export default {
       } else {
         type = 1
       }
-      get('http://81.68.234.235:8032/pdf-tech/vppDashboard/getChartStatistics/' + type).then((res) => {
+      get('/pdf-tech/vppDashboard/getChartStatistics/' + type).then((res) => {
         if (res.data.code === 200) {
           this.chartData.date = []
           this.chartData.assignedLicensesYData = []
@@ -107,7 +107,7 @@ export default {
     },
     // 获取团队数据
     getTeamData () {
-      get('http://81.68.234.235:8032/pdf-tech/vppDashboard/getTeamData').then((res) => {
+      get('/pdf-tech/vppDashboard/getTeamData').then((res) => {
         if (res.data.code === 200) {
           this.teamData.totalTeam = res.data.result.totalTeam
           this.teamData.totalMember = res.data.result.totalMember
@@ -117,7 +117,7 @@ export default {
     },
     // 获取团队成员数据
     getTeamMemberData () {
-      get('http://81.68.234.235:8032/pdf-tech/vppDashboard/getTeamMemberData', {
+      get('/pdf-tech/vppDashboard/getTeamMemberData', {
         teamId: this.teamSelect,
         codeList: this.teamFilterProductSelect
       }).then((res) => {
@@ -237,7 +237,7 @@ export default {
     },
     // 获取所有产品
     getProductList () {
-      get('http://81.68.234.235:8032/pdf-tech/product/listWithAdmin').then((res) => {
+      get('/pdf-tech/product/listWithAdmin').then((res) => {
         if (res.data.code === 200) {
           this.productList = res.data.result
         }
@@ -245,7 +245,7 @@ export default {
     },
     // 获取所有团队
     getTeamList() {
-      get('http://81.68.234.235:8032/pdf-tech/vppTeam/getManageTeamList', {
+      get('/pdf-tech/vppTeam/getManageTeamList', {
         teamId: '',
         keyword: ''
       }).then((res) => {

+ 5 - 5
src/views/Device.vue

@@ -42,7 +42,7 @@ export default {
     //分页查询
     pagingQuery() {
       get(
-        'http://81.68.234.235:8032/pdf-tech/vppDevice/page?page=' +
+        '/pdf-tech/vppDevice/page?page=' +
           this.currentPage +
           '&' +
           'pageSize=' +
@@ -66,7 +66,7 @@ export default {
     },
     // 获取团队管理列表
     getTeamList() {
-      get('http://81.68.234.235:8032/pdf-tech/vppTeam/getManageTeamList', {
+      get('/pdf-tech/vppTeam/getManageTeamList', {
         teamId: '',
         keyword: ''
       }).then((res) => {
@@ -77,7 +77,7 @@ export default {
     },
     //获取已购买产品
     getproductList() {
-      get('http://81.68.234.235:8032/pdf-tech/product/listWithAdmin').then(
+      get('/pdf-tech/product/listWithAdmin').then(
         (res) => {
           this.productList = res.data.result
         }
@@ -88,7 +88,7 @@ export default {
       var urlencoded = new URLSearchParams()
       urlencoded.append('deviceId', this.deviceId)
       post(
-        'http://81.68.234.235:8032/pdf-tech/vppDevice/cancel',
+        '/pdf-tech/vppDevice/cancel',
         urlencoded
       ).then((res) => {
         if (res.data.code === 200 && res.data.msg == ' Canceled!') {
@@ -125,7 +125,7 @@ export default {
       urlencoded.append("productId", this.productId)
       urlencoded.append("teamId", this.teamId)
       urlencoded.append("status", this.status)
-      downLoad("http://81.68.234.235:8032/pdf-tech/vppDevice/download", urlencoded).then((res)=>{
+      downLoad("/pdf-tech/vppDevice/download", urlencoded).then((res)=>{
         let url = window.URL.createObjectURL(new Blob([res.data], { type: '.xlsx' }))
         let a= document.createElement('a')
         a.style.display = 'none'

+ 5 - 5
src/views/LicenseManage.vue

@@ -30,7 +30,7 @@ onMounted(() => {
 })
 const pagingQuery = (val) => {
   get(
-    'http://81.68.234.235:8032/pdf-tech/vppLicenseCode/page?page=' +
+    '/pdf-tech/vppLicenseCode/page?page=' +
       currentPage.value +
       '&' +
       'pageSize=' +
@@ -54,7 +54,7 @@ const pagingQuery = (val) => {
 }
 //获取已购买产品
 const getproductList = (val) => {
-  get('http://81.68.234.235:8032/pdf-tech/product/listWithAdmin').then(
+  get('/pdf-tech/product/listWithAdmin').then(
     (res) => {
       productList.value = res.data.result
     }
@@ -62,7 +62,7 @@ const getproductList = (val) => {
 }
 // 获取团队管理列表
 const getTeamList = (val) => {
-  get('http://81.68.234.235:8032/pdf-tech/vppTeam/getManageTeamList', {
+  get('/pdf-tech/vppTeam/getManageTeamList', {
     teamId: '',
     keyword: ''
   }).then((res) => {
@@ -84,7 +84,7 @@ const download = () => {
   urlencoded.append("productId", productId.value)
   urlencoded.append("teamId", teamId.value)
   urlencoded.append("status", status.value)
-  downLoad('http://81.68.234.235:8032/pdf-tech/vppLicenseCode/download',urlencoded).then(
+  downLoad('/pdf-tech/vppLicenseCode/download',urlencoded).then(
     (res) => {
       let url = window.URL.createObjectURL(new Blob([res.data], { type: '.xlsx' }))
       let a= document.createElement('a')
@@ -106,7 +106,7 @@ const cancelAssign = () => {
   var urlencoded = new URLSearchParams()
   urlencoded.append('licenceId', '5817ff06-6621-74b5-24da-71c3aa219414')
   post(
-    'http://81.68.234.235:8032/pdf-tech/vppLicenseCode/cancelLicenceAssign',
+    '/pdf-tech/vppLicenseCode/cancelLicenceAssign',
     urlencoded
   ).then((res) => {
     if (res.data.code === 200 && res.data.msg == ' Assign Success!') {

+ 4 - 4
src/views/Login.vue

@@ -58,11 +58,11 @@ export default {
           var formdata = new FormData()
           formdata.append('username', this.ruleForm.email)
           formdata.append('password', this.ruleForm.password)
-          post('http://81.68.234.235:8032/pdf-tech/login', formdata).then(
+          post('/pdf-tech/login', formdata).then(
             (res) => {
               if (res.data.code === 200 && res.data.msg === '获取授权码成功') {
                 get(
-                  'http://81.68.234.235:8032/pdf-tech/auth/getToken?code=' +
+                  '/pdf-tech/auth/getToken?code=' +
                     res.data.result
                 ).then((res) => {
                   this.$cookies.set('accessToken', res.data.result.accessToken)
@@ -76,11 +76,11 @@ export default {
                     urlencoded.append('action', this.$route.query.action)
                     urlencoded.append('code', this.$route.query.code)
                     post(
-                      'http://81.68.234.235:8032/pdf-tech/vppTeam/enterTeam',
+                      '/pdf-tech/vppTeam/enterTeam',
                       urlencoded
                     ).then((res) => {})
                     get(
-                      'http://81.68.234.235:8032/pdf-tech/vppMember/getMemberInfo'
+                      '/pdf-tech/vppMember/getMemberInfo'
                     ).then((res) => {
                       if (res.data.code === 200 && res.data.msg == 'success') {
                         userStore().setUserInfo(res.data.result)

+ 3 - 3
src/views/ManageAdmin.vue

@@ -31,7 +31,7 @@ const handleClick = (val) => {
 //获取分页数据
 const pagingQuery = () => {
   get(
-    'http://81.68.234.235:8032/pdf-tech/vppRTeamMemberRole/pageForAdmin/?page=' +
+    '/pdf-tech/vppRTeamMemberRole/pageForAdmin/?page=' +
       currentPage.value +
       '&' +
       'pageSize=' +
@@ -56,7 +56,7 @@ const searchInfo = () => {
 }
 // 获取团队管理列表
 const getTeamList = (val) => {
-  get('http://81.68.234.235:8032/pdf-tech/vppTeam/getManageTeamList', {
+  get('/pdf-tech/vppTeam/getManageTeamList', {
     teamId: '',
     keyword: ''
   }).then((res) => {
@@ -70,7 +70,7 @@ const deleteAdmin = (val) => {
   dialogVisible.value = false
   var urlencoded = new URLSearchParams()
   urlencoded.append("memberId", val.id)
-  post('http://81.68.234.235:8032/pdf-tech/vppTeam/deleteAdmin',urlencoded).then((res) => {
+  post('/pdf-tech/vppTeam/deleteAdmin',urlencoded).then((res) => {
     if(res.data.code === 200){
       pagingQuery()
     }

+ 3 - 3
src/views/MenageAdmin/addAdmin.vue

@@ -28,7 +28,7 @@ export default {
         var urlencoded = new URLSearchParams()
         urlencoded.append("teamIds", this.formData.TeamAdmin)
         urlencoded.append("account", this.formData.AdminEmail)
-        post('http://81.68.234.235:8032/pdf-tech/vppTeam/sendEmailForAddTeamAdmin', urlencoded).then((res)=>{
+        post('/pdf-tech/vppTeam/sendEmailForAddTeamAdmin', urlencoded).then((res)=>{
           if(res.data.code === 200){
             this.$message({
               message: 'Change Success',
@@ -46,7 +46,7 @@ export default {
   },
   mounted() {
     // 获取团队列表
-    get('http://81.68.234.235:8032/pdf-tech/vppTeam/listWithAdmin').then(
+    get('/pdf-tech/vppTeam/listWithAdmin').then(
       (res) => {
         if(res.data.code === 200){
           this.teamList = res.data.result
@@ -59,7 +59,7 @@ export default {
 
 <template>
   <div>
-    <h1 class="text-28px leading-40px mb-15px font-700">Add Admin </h1>
+    <h1 class="text-28px leading-40px mb-15px font-700">Add Admin</h1>
     <div class="bg-[#fff] card">
       <el-form
         label-position="top"

+ 2 - 2
src/views/MenageAdmin/editAdmin.vue

@@ -20,7 +20,7 @@ export default {
       this.email = this.$route.query.Email
       this.memberId = this.$route.query.Id
     }
-    get('http://81.68.234.235:8032/pdf-tech/vppTeam/listForAdminEdit',{
+    get('/pdf-tech/vppTeam/listForAdminEdit',{
       memberId: this.memberId
     }).then((res)=>{
       if(res.data.code === 200){
@@ -38,7 +38,7 @@ export default {
       if (this.formData.TeamAdmin.length === 0) {
         this.$message.error('Please choose a team')
       } else {
-      post( 'http://81.68.234.235:8032/pdf-tech/vppTeam/editTeamAdmin',urlencoded ).then((res)=>{
+      post( '/pdf-tech/vppTeam/editTeamAdmin',urlencoded ).then((res)=>{
         if(res.data.code === 200){
             this.$message({
               message: 'Change Success',

+ 2 - 2
src/views/ProductManagement.vue

@@ -30,7 +30,7 @@ const searchInfo = () => {
 //获取分页数据
 const pagingQuery = () => {
   get(
-    'http://81.68.234.235:8032/pdf-tech/vppOrderDetail/pageByCompany?page=' +
+    '/pdf-tech/vppOrderDetail/pageByCompany?page=' +
       currentPage.value +
       '&' +
       'pageSize=' +
@@ -45,7 +45,7 @@ const pagingQuery = () => {
 }
 //获取已购买产品
 const getproductList = (val) => {
-  get('http://81.68.234.235:8032/pdf-tech/product/listWithAdmin').then(
+  get('/pdf-tech/product/listWithAdmin').then(
     (res) => {
       productList.value = res.data.result
     }

+ 2 - 2
src/views/Settings.vue

@@ -45,7 +45,7 @@ export default {
     changePassword() {
       this.$refs['ruleFormPass'].validate((valid) => {
         if (valid) {
-          post('http://81.68.234.235:8032/pdf-tech/vppMember/updatePassword', {
+          post('/pdf-tech/vppMember/updatePassword', {
             password: this.ruleFormPass.oldPassword,
             newPassword: this.ruleFormPass.newPassword,
             newPasswordConfirm: this.ruleFormPass.confirmPassword
@@ -84,7 +84,7 @@ export default {
     changeInfo() {
       this.$refs['ruleForm'].validate((valid) => {
         if (valid) {
-          put('http://81.68.234.235:8032/pdf-tech/vppSet/setGeneral', {
+          put('/pdf-tech/vppSet/setGeneral', {
             userName: this.ruleForm.userName,
             area: this.ruleForm.area
           }).then((res) => {

+ 5 - 5
src/views/TeamManagement/ManageMember.vue

@@ -28,7 +28,7 @@ const handleClick = (val) => {
 function deleteMember(){
   var urlencoded = new URLSearchParams()
   urlencoded.append("memberId", memberId.value)
-  post("http://81.68.234.235:8032/pdf-tech/vppTeam/deleteMember",urlencoded).then((res)=>{
+  post("/pdf-tech/vppTeam/deleteMember",urlencoded).then((res)=>{
     if(res.data.code === 200){
       dialogVisible.value = false
       getManageMemberList()
@@ -46,7 +46,7 @@ function handleCurrentChange(val) {
 }
 // 获取团队管理列表
 const getTeamList = () => {
-  get('http://81.68.234.235:8032/pdf-tech/vppTeam/getManageTeamList', {
+  get('/pdf-tech/vppTeam/getManageTeamList', {
     teamId: '',
     keyword: ''
   }).then((res) => {
@@ -57,7 +57,7 @@ const getTeamList = () => {
 }
 //获取已购买产品
 const getproductList = () => {
-  get('http://81.68.234.235:8032/pdf-tech/product/listWithAdmin').then(
+  get('/pdf-tech/product/listWithAdmin').then(
     (res) => {
       productList.value = res.data.result
     }
@@ -66,7 +66,7 @@ const getproductList = () => {
 // 获取成员列表
 function getManageMemberList() {
   get(
-    'http://81.68.234.235:8032/pdf-tech/vppRTeamMemberRole/pageForMember?page=' +
+    '/pdf-tech/vppRTeamMemberRole/pageForMember?page=' +
       currentPage.value +
       '&' +
       'pageSize=' +
@@ -105,7 +105,7 @@ function exportManageMemberList() {
   urlencoded.append("productId", product.value)
   urlencoded.append("teamId", teamId.value)
   urlencoded.append("status", status.value)
-  downLoad("http://81.68.234.235:8032/pdf-tech/vppRTeamMemberRole/download", urlencoded).then((res)=>{
+  downLoad("/pdf-tech/vppRTeamMemberRole/download", urlencoded).then((res)=>{
       let url = window.URL.createObjectURL(new Blob([res.data], { type: '.xlsx' }))
       let a= document.createElement('a')
       a.style.display = 'none'

+ 3 - 3
src/views/TeamManagement/ManageMember/AddManageMember.vue

@@ -25,7 +25,7 @@ export default {
       if (this.formData.memberEmail.trim() === '' || this.formData.teamId.trim() === '') {
         this.$message.error('Missing required information')
       } else {
-        post('http://81.68.234.235:8032/pdf-tech/vppTeam/addTeamMember',this.formData).then((res)=>{
+        post('/pdf-tech/vppTeam/addTeamMember',this.formData).then((res)=>{
           if(res.data.code === 200){
             this.$message({
               message: 'Add Success!',
@@ -45,7 +45,7 @@ export default {
       this.$refs.upload.submit()
       const formData = new FormData()
       formData.append("file",this.file)
-      post('http://81.68.234.235:8032/pdf-tech/vppTeam/addTeamMemberBatch', formData).then((res) => {
+      post('/pdf-tech/vppTeam/addTeamMemberBatch', formData).then((res) => {
         if(res.data.code === 200){
           this.$message({
             message: 'Add Success!',
@@ -62,7 +62,7 @@ export default {
   },
   mounted() {
     //获取团队列表
-    get('http://81.68.234.235:8032/pdf-tech/vppTeam/listWithAdmin').then(
+    get('/pdf-tech/vppTeam/listWithAdmin').then(
       (res) => {
         if(res.data.code === 200){
           this.teamList = res.data.result

+ 2 - 2
src/views/TeamManagement/ManageMember/EditManageMember.vue

@@ -34,7 +34,7 @@ export default {
       this.email = this.$route.query.Email
       this.formData.memberName = this.$route.query.MemberName
     }
-    get('http://81.68.234.235:8032/pdf-tech/vppTeam/listWithAdmin').then((res)=>{
+    get('/pdf-tech/vppTeam/listWithAdmin').then((res)=>{
       this.teamList = res.data.result
     })
   },
@@ -53,7 +53,7 @@ export default {
       urlencoded.append("memberId", this.$route.query.Id)
       urlencoded.append("teamId", this.formData.memberTeam)
       urlencoded.append("name", this.formData.memberName)
-      post('http://81.68.234.235:8032/pdf-tech/vppTeam/editTeamMember',urlencoded).then((res)=>{
+      post('/pdf-tech/vppTeam/editTeamMember',urlencoded).then((res)=>{
         if(res.data.code === 200){
           this.dialogVisible = false
           this.$message({

+ 4 - 4
src/views/TeamManagement/ManageTeam.vue

@@ -35,7 +35,7 @@ function handleCurrentChange(val) {
 }
 // 获取团队管理列表
 function getManageTeamList() {
-  get('http://81.68.234.235:8032/pdf-tech/vppTeam/getManageTeamList', {
+  get('/pdf-tech/vppTeam/getManageTeamList', {
     page: currentPage.value,
     pageSize: pageSize.value,
     teamId: teamId.value,
@@ -49,7 +49,7 @@ function getManageTeamList() {
 }
 // 获取团队管理列表
 const getTeamList = () => {
-  get('http://81.68.234.235:8032/pdf-tech/vppTeam/getManageTeamList', {
+  get('/pdf-tech/vppTeam/getManageTeamList', {
     teamId: '',
     keyword: ''
   }).then((res) => {
@@ -60,7 +60,7 @@ const getTeamList = () => {
 }
 // 团队管理列表导出
 function exportManageTeamList() {
-  downLoad('http://81.68.234.235:8032/pdf-tech/vppTeam/exportManageTeamList?teamId='+
+  downLoad('/pdf-tech/vppTeam/exportManageTeamList?teamId='+
           teamId.value +
           '&' +
           'keyword=' +
@@ -82,7 +82,7 @@ function exportManageTeamList() {
 }
 // 删除
 function handleDelete() {
-  _delete('http://81.68.234.235:8032/pdf-tech/vppTeam/deleteTeam', {
+  _delete('/pdf-tech/vppTeam/deleteTeam', {
     teamId: deleteTeamId.value
   }).then((res) => {
     if (res.data.code === 200) {

+ 4 - 4
src/views/TeamManagement/ManageTeamOperate.vue

@@ -94,7 +94,7 @@ export default {
           item.licenseNumber = 0
         }
       })
-      postWithHeader('http://81.68.234.235:8032/pdf-tech/vppTeam/createTeam', JSON.stringify(this.formData)).then((res) => {
+      postWithHeader('/pdf-tech/vppTeam/createTeam', JSON.stringify(this.formData)).then((res) => {
         if (res.data.code === 200) {
           this.$message('Change Success')
           this.$router.push({name:'ManageTeam'})
@@ -110,7 +110,7 @@ export default {
           item.licenseNumber = 0
         }
       })
-      putWithHeader('http://81.68.234.235:8032/pdf-tech/vppTeam/editTeam', JSON.stringify(this.formData)).then((res) => {
+      putWithHeader('/pdf-tech/vppTeam/editTeam', JSON.stringify(this.formData)).then((res) => {
         if (res.data.code === 200) {
           this.$message('Change Success')
           this.$router.push({name:'ManageTeam'})
@@ -121,7 +121,7 @@ export default {
     },
     // 获取所有管理员
     getAdmin () {
-      get('http://81.68.234.235:8032/pdf-tech/vppRTeamMemberRole/pageForAdmin').then((res) => {
+      get('/pdf-tech/vppRTeamMemberRole/pageForAdmin').then((res) => {
         if (res.data.code === 200) {
           res.data.result.list.forEach(item => {
             if (item.memberRole !== '1') {
@@ -136,7 +136,7 @@ export default {
     },
     // 获取所有产品
     getProduct () {
-      get('http://81.68.234.235:8032/pdf-tech/product/listWithAdmin').then((res) => {
+      get('/pdf-tech/product/listWithAdmin').then((res) => {
         if (res.data.code === 200) {
           res.data.result.forEach(item => {
             this.projectOptions.push({

+ 1 - 1
src/views/VolumeCancel.vue

@@ -18,7 +18,7 @@ export default {
       this.$refs.upload.submit()
       const formData = new FormData()
       formData.append("file",this.file)
-      post('http://81.68.234.235:8032/pdf-tech/vppLicenseCode/cancelLicenceAssignBatch', formData).then((res) => {
+      post('/pdf-tech/vppLicenseCode/cancelLicenceAssignBatch', formData).then((res) => {
         if(res.data.code === 200){
           this.$message({
             message: 'Assign Success!',

+ 1 - 1
src/views/forgotpassword.vue

@@ -38,7 +38,7 @@ export default {
     sendEmail() {
       this.$refs['ruleForm'].validate((valid) => {
         if (valid) {
-          post('http://81.68.234.235:8032/pdf-tech/vppMember/resetPassword', {
+          post('/pdf-tech/vppMember/resetPassword', {
             email: this.ruleForm.email
           }).then((res) => {
             if (

+ 1 - 1
utils/request.js

@@ -4,7 +4,7 @@ import Qs from 'qs'
 
 // 创建请求实例
 const instance = axios.create({
-  baseURL: '/api',
+  baseURL: 'http://81.68.234.235:8032',
   // 指定请求超时的毫秒数
   timeout: 10000,
   // 表示跨域请求时是否需要使用凭证