|
|
@@ -99,7 +99,7 @@
|
|
|
</div>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="微信绑定" name="wx">
|
|
|
- <div id="qrcodetemplate" ref="qrcodetemplate" />
|
|
|
+ <div id="qrcodetemplate" ref="qrcodetemplate" style="margin: 5px 0;" />
|
|
|
</el-tab-pane>
|
|
|
</el-tabs>
|
|
|
</vuescroll>
|
|
|
@@ -110,7 +110,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-
|
|
|
+import { serverUrl, devServerUrl } from '@/settings'
|
|
|
import { getUserProfile, updateUserProfile } from '@/api/index'
|
|
|
import { updatePassword } from '@/api/system/userApi'
|
|
|
import { mapGetters } from 'vuex'
|
|
|
@@ -217,7 +217,9 @@ export default {
|
|
|
drawQrcode() {
|
|
|
const ocId = this.userData.ocId
|
|
|
const userId = this.userData.userId
|
|
|
- const url = 'http://192.168.3.253:8001/wx/auth/' + ocId + '/' + userId
|
|
|
+
|
|
|
+ const baseURL = process.env.NODE_ENV === 'development' ? devServerUrl : serverUrl
|
|
|
+ const url = baseURL + '/wx/auth/' + ocId + '/' + userId
|
|
|
if (!url) {
|
|
|
this.$message.error('没有生产二维码的参数')
|
|
|
return
|