Browse Source

修复URL路径的问题

xiaozhen 6 years ago
parent
commit
0ccb5576fb
7 changed files with 537 additions and 41 deletions
  1. 5 5
      components/footer.vue
  2. 21 21
      components/header.vue
  3. 2 2
      components/wx_header.vue
  4. 7 7
      pages/community/user/_id.vue
  5. 496 0
      pages/user/_id.vue
  6. 4 4
      plugins/common.js
  7. 2 2
      plugins/http.js

+ 5 - 5
components/footer.vue

@@ -25,12 +25,12 @@
     <div class="footer" id="footer">
       <div class="footer-container">
         <div class="footer-links">
-          <a class="item" href="/index/app" rel="nofollow">APP下载</a>
+          <a class="item" href="https://www.proginn.com/index/app" rel="nofollow">APP下载</a>
           <a class="item" href="http://support.proginn.com/" rel="nofollow">帮助</a>
-          <a class="item" href="/about" rel="nofollow">关于我们</a>
-          <a class="item" href="/about/mediareports" rel="nofollow">媒体报道</a>
+          <a class="item" href="https://www.proginn.com/about" rel="nofollow">关于我们</a>
+          <a class="item" href="https://www.proginn.com/about/mediareports" rel="nofollow">媒体报道</a>
           <a class="item" href="https://inn.proginn.com/sites/" rel="nofollow">合作伙伴</a>
-          <a class="item" href="/about/suggestion" rel="nofollow">意见反馈</a>
+          <a class="item" href="https://www.proginn.com/about/suggestion" rel="nofollow">意见反馈</a>
           <span style="color: rgb(204, 204, 204);" class="ui item">© 程序员客栈</span>
         </div>
         <div class="safe">
@@ -78,7 +78,7 @@ export default {
       this.$set(this.links, index, link)
     },
     async getLinks() {
-      let res = await this.$post('/api/public_config/get_seo_footer_links')
+      let res = await this.$post('https://www.proginn.com/api/public_config/get_seo_footer_links')
       if(res) {
         this.links = res.data.links
       }

+ 21 - 21
components/header.vue

@@ -1,13 +1,13 @@
 <template>
   <div id="proginn-header" :class="{transparent: transparent}">
     <div class="list">
-      <a href="/" class="nav-item">
+      <a href="https://www.proginn.com" class="nav-item">
         <img class="logo" :src="transparent ? blueWhiteLogo : 'https://stacdn.proginn.com/image/common/logo3@2x.png'">
       </a>
-      <a href="/" class="nav-item">首页</a>
-      <a href="/cloud?from=top_nav" class="nav-item">云端工作</a>
-      <a href="/users" class="nav-item">程序员</a>
-      <a href="/community" class="nav-item">技术圈</a>
+      <a href="https://www.proginn.com/" class="nav-item">首页</a>
+      <a href="https://www.proginn.com/cloud?from=top_nav" class="nav-item">云端工作</a>
+      <a href="https://www.proginn.com/users" class="nav-item">程序员</a>
+      <a href="https://jishuin.proginn.com" class="nav-item">技术圈</a>
       <div>
         <div style="position: relative;">
           <input
@@ -29,22 +29,22 @@
           </el-button>
           <el-dropdown-menu slot="dropdown">
             <el-dropdown-item>
-              <a class="workstation" href="/wo/work_todo">
+              <a class="workstation" href="https://www.proginn.com/wo/work_todo">
                 <i class="el-icon-edit"></i>我的待办
               </a>
             </el-dropdown-item>
             <el-dropdown-item>
-              <a class="workstation" href="/wo/work_platform">
+              <a class="workstation" href="https://www.proginn.com/wo/work_platform">
                 <i class="el-icon-date"></i>我的项目
               </a>
             </el-dropdown-item>
             <el-dropdown-item>
-              <a class="workstation" href="/wo/work_hire">
+              <a class="workstation" href="https://www.proginn.com/wo/work_hire">
                 <i class="el-icon-news"></i>我的雇佣
               </a>
             </el-dropdown-item>
             <el-dropdown-item>
-              <a class="workstation" href="/wo/work_cloud">
+              <a class="workstation" href="https://www.proginn.com/wo/work_cloud">
                 <i class="el-icon-service"></i>我的云端
               </a>
             </el-dropdown-item>
@@ -116,28 +116,28 @@
                 </span>
               </div>
               <div class="vip-arcs">
-                <a class="vip-arc" :class="{'is-dev': !isCom}" href="/type/vip">查看权益</a>
+                <a class="vip-arc" :class="{'is-dev': !isCom}" href="https://www.proginn.com/type/vip">查看权益</a>
                 <a
                   class="vip-arc"
                   :class="{'is-dev': !isCom}"
-                  href="/vip/pay?number=3&amp;product_id=1&amp;next=/type/vip"
+                  href="https://www.proginn.com/vip/pay?number=3&amp;product_id=1&amp;next=/type/vip"
                 >立即续费</a>
               </div>
             </div>
             <div class="vip-items">
-              <a class="vip-item divider" href="/wo/work_platform">
+              <a class="vip-item divider" href="https://www.proginn.com/wo/work_platform">
                 <i class="el-icon-date"></i>我的项目
               </a>
-              <a class="vip-item" href="/wo/work_hire">
+              <a class="vip-item" href="https://www.proginn.com/wo/work_hire">
                 <i class="el-icon-news"></i>我的雇佣
               </a>
-              <a class="vip-item" href="/wo/work_cloud">
+              <a class="vip-item" href="https://www.proginn.com/wo/work_cloud">
                 <i class="el-icon-service"></i>我的云端
               </a>
-              <a class="vip-item divider" :href="`/wo/${userinfo.uid}`">
+              <a class="vip-item divider" :href="`https://www.proginn.com/wo/${userinfo.uid}`">
                 <i class="el-icon-document"></i>我的主页
               </a>
-              <a class="vip-item" href="/index/app">
+              <a class="vip-item" href="https://www.proginn.com/index/app">
                 <i class="el-icon-view"></i>关注微信
               </a>
               <a class="vip-item divider" @click="clickQuit">
@@ -148,8 +148,8 @@
         </el-popover>
       </template>
       <div v-else>
-        <a class="account-ctrl" href="/?loginbox=show">登录</a>
-        <a class="account-ctrl" style="margin-left: 40px;" href="/user/register">注册</a>
+        <a class="account-ctrl" href="https://www.proginn.com/?loginbox=show">登录</a>
+        <a class="account-ctrl" style="margin-left: 40px;" href="https://www.proginn.com/user/register">注册</a>
       </div>
     </div>
   </div>
@@ -186,16 +186,16 @@ export default {
   },
   methods: {
     async clickQuit() {
-      location.href = '/user/quit'
+      location.href = 'https://www.proginn.com/user/quit'
     },
     clickMessages(url) {
       location.href = url
     },
     clickInputEnter() {
-      window.location.href = '/search/?keyword=' + this.keywork;
+      window.location.href = 'https://www.proginn.com/search/?keyword=' + this.keywork;
     },
     async getMessageCount() {
-      let res = await this.$get('/api/message/getUnreadCount', {}, { neverLogout: true })
+      let res = await this.$get('https://www.proginn.com/api/message/getUnreadCount', {}, { neverLogout: true })
       if(res) {
         this.messageCount = res.data
       }

+ 2 - 2
components/wx_header.vue

@@ -7,12 +7,12 @@
       </el-button>
       <el-dropdown-menu slot="dropdown">
         <el-dropdown-item>
-          <a class="workstation text" href="/cat/">
+          <a class="workstation text" href="https://www.proginn.com/cat/">
             <i class="el-icon-service"></i><span>程序员</span>
           </a>
         </el-dropdown-item>
         <el-dropdown-item>
-          <a class="workstation text" href="/community">
+          <a class="workstation text" href="https://jishuin.proginn.com/">
             <i class="el-icon-message"></i><span>技术圈</span>
           </a>
         </el-dropdown-item>

+ 7 - 7
pages/community/user/_id.vue

@@ -87,7 +87,7 @@ export default {
   async asyncData({ params }) {
     let id = params.id
     // console.log(id)
-    let res = await http.get(`/api/user/getUserInfo?id=${id}&page=1&size=10`, {}, { neverLogout: true })
+    let res = await http.get(`https://www.proginn.com/api/user/getUserInfo?id=${id}&page=1&size=10`, {}, { neverLogout: true })
     return {
       title: `${res.data.info.nickname}的技术圈主页-程序员客栈`
     }
@@ -124,14 +124,14 @@ export default {
   },
   methods: {
     async getDetail() {
-      let res = await http.get(`/api/user/getUserInfo?id=${this.$route.params.id}&page=1&size=10`)
-      res.data.has_follow=parseInt(res.data.has_follow);
+      let res = await http.get(`https://www.proginn.com/api/user/getUserInfo?id=${this.$route.params.id}&page=1&size=10`)
+      console.log(res.data)
       if(res) {
         this.idInfo = res.data
       }
     },
     clickLancer({ id }) {
-      this.$router.push(`/cert/type/${id}`)
+      this.$router.push(`https://www.proginn.com/cert/type/${id}`)
     },
     btnDisabled(item) {
       return item.btn_name !== "申请认证" || !item.can_click
@@ -140,7 +140,7 @@ export default {
       let id = this.$route.params.id
       this.isLoading = true
       // console.log(id)
-      let res = await this.$get(`/api/user/getUserInfo?id=${id}&page=${this.currentPage}&size=10`, {}, { neverLogout: true })
+      let res = await this.$get(`https://www.proginn.com/api/user/getUserInfo?id=${id}&page=${this.currentPage}&size=10`, {}, { neverLogout: true })
       this.isLoading = false
       if(res) {
         if(this.currentPage === 1 || this.$store.state.isPC) {
@@ -212,7 +212,7 @@ export default {
         location.href = 'proginn://login'
         return
       }
-      let res = await this.$post(`/api/user/follow`, {
+      let res = await this.$post(`https://www.proginn.com/api/user/follow`, {
         follow_id: this.$route.params.id
       })
       if(res) {
@@ -223,7 +223,7 @@ export default {
      * 点击文章
      */
     clickArt(art, index) {
-      location.href = `/community/topics/${art.id}.html`
+      location.href = `https://jishuin.proginn.com/topics/${art.id}.html`
     },
     /**
      * 监听滚动

+ 496 - 0
pages/user/_id.vue

@@ -0,0 +1,496 @@
+<template>
+  <div class="community-u" ref="container" @scroll="containerScroll">
+    <div alt="back" class="background"></div>
+    <div class="userinfo">
+      <img :src="info.icon_url" alt class="header-avatar">
+      <div class="header-nickname">{{info.nickname}}</div>
+      <div class="header-title">{{info.title}}</div>
+      <div class="count-infos">
+        <div class="info">
+          {{idInfo.topics_count}}
+          <span>文章</span>
+        </div>
+        <div class="info">
+          {{idInfo.fans_count}}
+          <span>粉丝</span>
+        </div>
+        <div class="info">
+          {{idInfo.followers_count}}
+          <span>关注</span>
+        </div>
+      </div>
+      <button class="focu-btn followed" v-if="idInfo.has_follow" @click="doFollow">已关注</button>
+      <button class="focu-btn" v-else @click="doFollow">关注TA</button>
+    </div>
+    <div class="content-box">
+      <div class="content-left">
+        <div class="arts-title">
+          一共
+          <span style="color: var(--mainColor);">{{idInfo.topics_count}}</span> 篇文章
+        </div>
+        <div class="art" v-for="(art, index) of arts" :key="index" @click="clickArt(art, index)">
+          <img v-if="art.cover_url" :src="art.cover_url" alt class="art-img">
+          <section class="art-info">
+            <h3 class="art-title">{{art.title}}</h3>
+            <p class="art-summary">{{art.intro}}</p>
+            <div class="art-subinfo">
+              <div class="author">
+                <img :src="info.icon_url" alt="author-img" class="author-avatar">
+                <span style="font-size: 10px;">{{info.nickname}}</span>
+                <span class="create-time">{{art.updated_at}}</span>
+              </div>
+              <div class="art-counts-info">
+                <div class="good">
+                  <img src="~@/assets/img/community/good_icon.png">
+                  <span class="good-count">{{art.like_count}}</span>
+                </div>
+                <div class="comment">
+                  <img src="~@/assets/img/community/comment_icon.png">
+                  <span class="comment-count">{{art.reply_count}}</span>
+                </div>
+              </div>
+            </div>
+          </section>
+        </div>
+        <el-pagination
+          v-if="$store.state.isPC"
+          background
+          layout="prev, pager, next"
+          :total="+idInfo.topics_count"
+          :page-size="10"
+          :current-page="currentPage"
+          @current-change="changePagination"
+        ></el-pagination>
+      </div>
+      <div class="content-right">
+        关注微信
+        <img src="~@/assets/img/wechat.jpg" alt="wechat" class="qr-code">
+      </div>
+    </div>
+    <div class="loading" v-if="isLoading">
+      <i class="el-icon-loading"></i>
+      正在加载
+    </div>
+    <div class="loading" v-if="noMore">已加载全部内容</div>
+  </div>
+</template>
+
+<script>
+import http from '@/plugins/http'
+import WxMixin from '@/mixins/wx'
+
+let container
+let page = 1
+
+export default {
+  layout: 'opacity_header',
+  async asyncData({ params }) {
+    let id = params.id
+    // console.log(id)
+    let res = await http.get(`https://www.proginn.com/api/user/getUserInfo?id=${id}&page=1&size=10`, {}, { neverLogout: true })
+    return {
+      title: `${res.data.info.nickname}的技术圈主页-程序员客栈`
+    }
+  },
+  head() {
+    return {
+      title: this.title,
+      script: [
+        { src: 'https://res.wx.qq.com/open/js/jweixin-1.2.0.js' },
+      ],
+    }
+  },
+  mixins: [WxMixin],
+  data() {
+    return {
+      list: [],
+      currentPage: 1,
+      isLoading: false,
+      noMore: false,
+      idInfo: {},
+    }
+  },
+  computed: {
+    info() {
+      return this.idInfo.info || {}
+    },
+    arts() {
+      return this.idInfo.topics || []
+    },
+  },
+  mounted() {
+    container = this.$refs.container
+    this.getDetail()
+  },
+  methods: {
+    async getDetail() {
+      let res = await http.get(`https://www.proginn.com/api/user/getUserInfo?id=${this.$route.params.id}&page=1&size=10`)
+      console.log(res.data)
+      if(res) {
+        this.idInfo = res.data
+      }
+    },
+    clickLancer({ id }) {
+      this.$router.push(`https://www.proginn.com/cert/type/${id}`)
+    },
+    btnDisabled(item) {
+      return item.btn_name !== "申请认证" || !item.can_click
+    },
+    async getList() {
+      let id = this.$route.params.id
+      this.isLoading = true
+      // console.log(id)
+      let res = await this.$get(`https://www.proginn.com/api/user/getUserInfo?id=${id}&page=${this.currentPage}&size=10`, {}, { neverLogout: true })
+      this.isLoading = false
+      if(res) {
+        if(this.currentPage === 1 || this.$store.state.isPC) {
+          this.idInfo = res.data
+        } else {
+          if(!res.data.topics.length) {
+            this.noMore = true
+            return
+          }
+          this.idInfo.topics = [...this.idInfo.topics, ...res.data.topics]
+        }
+      }
+    },
+    canApply(item) {
+      return item.end_date && item.is_cert_validate && item.cert_no
+    },
+    configWx() {
+      try {
+        let conf = this.$store.state.wxConfig
+        wx.ready(function() {   //需在用户可能点击分享按钮前就先调用
+          wx.config({
+            debug: true,
+            appId: conf.appId,
+            timestamp: conf.timestamp,
+            nonceStr: conf.nonceStr,
+            signature: conf.signature,
+            jsApiList: [
+              // 所有要调用的 API 都要加到这个列表中
+              'onMenuShareTimeline',       // 分享到朋友圈接口
+              'onMenuShareAppMessage',  //  分享到朋友接口
+              'onMenuShareQQ',         // 分享到QQ接口
+              'onMenuShareWeibo'      // 分享到微博接口
+            ],
+            success: function() {
+              alert('wx.config ok');
+            },
+            error: function(d) {
+              alert('wx.config err:' + JSON.stringify(d));
+            }
+          })
+          wx.updateAppMessageShareData({
+            title: '开发者资质认证', // 分享标题
+            desc: '通过平台审核、认证,将获得更多接单机会', // 分享描述
+            link: location.href, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
+            imgUrl: 'https://stacdn.proginn.com/favicon.ico', // 分享图标
+            success: function() {
+              // 设置成功
+              alert('微信图标设置成功')
+            }
+          })
+        })
+      } catch(error) {
+        alert(error)
+      }
+    },
+    /**
+     * 修改页码
+     */
+    changePagination(page) {
+      this.currentPage = page
+      this.getList()
+    },
+    /**
+     * 点击关注按钮
+     */
+    async doFollow() {
+      // 移动端处理
+      if(!this.$store.state.isPC && !this.$store.getters.isLogin) {
+        location.href = 'proginn://login'
+        return
+      }
+      let res = await this.$post(`https://www.proginn.com/api/user/follow`, {
+        follow_id: this.$route.params.id
+      })
+      if(res) {
+        this.idInfo.has_follow = res.data.follow_status ? 1 : 0
+      }
+    },
+    /**
+     * 点击文章
+     */
+    clickArt(art, index) {
+      location.href = `https://www.proginn.com/topics/${art.id}.html`
+    },
+    /**
+     * 监听滚动
+     */
+    containerScroll() {
+      if(this.isLoading || this.noMore) return
+      // PC不监听
+      if(this.$store.state.isPC) return
+      if(container.scrollHeight - container.scrollTop - container.clientHeight < 50) {
+        this.currentPage++
+        this.getList()
+      }
+    },
+  }
+}
+</script>
+
+<style lang='less' scoped>
+@max768: ~"(max-width: 768px)";
+.community-u {
+  min-width: 0;
+  min-height: 0;
+  max-width: 1000px;
+}
+.background {
+  position: absolute;
+  left: 0;
+  top: 0;
+  width: 100%;
+  height: 428px;
+  z-index: -1;
+  background: url(~@/assets/img/community/u_background.png) 0 0 ~"/" 100% 100% no-repeat;
+}
+.community-u {
+  .userinfo {
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    height: 350px;
+    overflow: hidden;
+    margin-bottom: 10px;
+    color: white;
+    margin-top: 20px;
+  }
+}
+.header-avatar {
+  @size: 88px;
+  width: @size;
+  height: @size;
+  border-radius: @size / 2;
+}
+.header-nickname {
+  font-size: 16px;
+  font-weight: 600;
+  margin: 10px 0 2px;
+}
+.header-title {
+  font-size: 10px;
+  margin-top: 8px;
+}
+.count-infos {
+  display: flex;
+  align-items: center;
+  margin: 23px 0 30px;
+}
+.info {
+  display: flex;
+  align-items: flex-end;
+  align-items: center;
+  font-size: 25px;
+  font-weight: bold;
+  margin: 0 16px;
+  border-right: 1px solid white;
+  &:last-child {
+    border-right: none;
+  }
+  span {
+    font-size: 10px;
+    margin: 0 30px 0 6px;
+  }
+}
+.create-time {
+  font-size: 10px;
+  color: #999;
+  border-left: 1px solid #999;
+  margin-left: 2px;
+  padding-left: 2px;
+}
+.focu-btn {
+  width: 150px;
+  height: 40px;
+  background: var(--mainColor);
+  color: white;
+  border-radius: 20px;
+}
+.followed {
+  background: grey;
+}
+.content-box {
+  display: flex;
+}
+.content-left {
+  width: 740px;
+  padding: 20px 20px 40px;
+  background: white;
+}
+.art {
+  display: flex;
+  margin-top: 20px;
+  padding-bottom: 20px;
+  cursor: pointer;
+  border-bottom: 1px solid #f2f2f2;
+}
+.art-img {
+  width: 154px;
+  height: 114px;
+  margin-right: 20px;
+}
+.art-info {
+  flex: 1;
+}
+.overflow {
+  max-width: 520px;
+  display: block;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+.art-title {
+  .overflow;
+  font-size: 18px;
+}
+.art-summary {
+  .overflow;
+  font-size: 10px;
+  color: #666;
+  margin-top: 10px;
+}
+.art-subinfo {
+  display: flex;
+  justify-content: space-between;
+  align-items: center;
+  margin-top: 50px;
+  .author-avatar {
+    margin-right: 4px;
+    border-radius: 10px;
+  }
+  .author {
+    display: flex;
+    align-items: center;
+  }
+  .author-avatar {
+    @size: 20px;
+    width: @size;
+    height: @size;
+  }
+}
+.art-counts-info {
+  display: flex;
+  align-items: center;
+  .good-count,
+  .comment-count {
+    font-size: 10px;
+    font-weight: 500;
+    color: #999;
+  }
+  .good,
+  .comment {
+    display: flex;
+    align-items: center;
+    img {
+      @size: 16px;
+      width: @size;
+      height: @size;
+      margin-right: 4px;
+    }
+  }
+  .comment {
+    margin-left: 10px;
+  }
+}
+.content-right {
+  display: flex;
+  flex-direction: column;
+  align-items: center;
+  width: 250px;
+  height: 274px;
+  background: white;
+  margin-left: 10px;
+  padding-top: 20px;
+  .qr-code {
+    @size: 176px;
+    width: @size;
+    height: @size;
+    margin-top: 20px;
+  }
+}
+.arts-title {
+  padding-bottom: 10px;
+  border-bottom: 1px solid #f2f2f2;
+}
+@media @max768 {
+  .community-u {
+    width: 100%;
+    margin-bottom: 0;
+    height: 100vh;
+    overflow-y: scroll;
+  }
+  .background {
+    background: url(~@/assets/img/community/u_background_small.png) 0 0 ~"/" 100%
+      100% no-repeat;
+  }
+  .followed {
+    border: 1px solid white;
+    background: transparent;
+  }
+  .content-left {
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    padding: 10px 0 0;
+    width: 100%;
+  }
+  .arts-title {
+    width: calc(100% - 40px);
+  }
+  .art {
+    flex-direction: row-reverse;
+    border-bottom: 1px solid rgba(244, 244, 244, 1);
+    padding-bottom: 10px;
+    width: calc(100% - 40px);
+    .art-img {
+      width: 120px;
+      height: 90px;
+      margin-left: 20px;
+      margin-right: 0;
+    }
+    .art-info {
+      border-bottom: none;
+    }
+    .art-title {
+      white-space: normal;
+      font-size: 14px;
+      line-height: 20px;
+    }
+    .art-summary {
+      display: none;
+    }
+  }
+  .art-subinfo {
+    margin-top: 26px;
+  }
+  .content-right {
+    display: none;
+  }
+  .el-pagination {
+    margin-bottom: 20px;
+  }
+}
+.el-pagination {
+  margin-top: 40px;
+  text-align: center;
+}
+.loading {
+  display: flex;
+  justify-content: center;
+  align-items: center;
+  margin: 20px 0;
+}
+</style>

+ 4 - 4
plugins/common.js

@@ -5,7 +5,7 @@ import http from '@/plugins/http'
 Vue.mixin({
   async fetch({ store, req }) {
     let headers = req && req.headers
-    let res = await http.get('/api/user/getInfo', {}, { config: { headers }, neverLogout: true })
+    let res = await http.get('https://www.proginn.com/api/user/getInfo', {}, { config: { headers }, neverLogout: true })
     if(res) {
       store.commit('updateUserinfo', { userinfo: res.data })
     }
@@ -28,12 +28,12 @@ Vue.mixin({
   methods: {
     goLogin(e, noAlert) {
       if(noAlert) {
-        location.href = `/?loginbox=show`
+        location.href = `https://www.proginn.com/?loginbox=show`
       }else {
         this.$alert('未登录, 前往登录', '提示', {
           confirmButtonText: '确定',
           callback: action => {
-            location.href = `/?loginbox=show`
+            location.href = `https://www.proginn.com/?loginbox=show`
           }
         })
       }
@@ -47,4 +47,4 @@ Vue.mixin({
       })
     },
   }
-})
+})

+ 2 - 2
plugins/http.js

@@ -71,7 +71,7 @@ const request = async (method, path, data, payload = {}) => {
   // consoleFormat({ rData })
   if(rData.status === 1) return rData
   else if(rData.status === -99 && !payload.neverLogout) {
-    location.href = '/?loginbox=show'
+    location.href = 'https://www.proginn.com/?loginbox=show'
     return
   } else {
     if(!payload.neverLogout) Vue.prototype.$message.error(rData.info)
@@ -89,4 +89,4 @@ Vue.prototype.$request = request
 let host = `https://dev.test.proginn.com`
 // host = `https://www.proginn.com`
 
-export default { get, post, request, host }
+export default { get, post, request, host }