初始化仓库
This commit is contained in:
38
pages/work/ipc.vue
Normal file
38
pages/work/ipc.vue
Normal file
@@ -0,0 +1,38 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<web-view :src="`${baseUrl}/ipc`"></web-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getToken
|
||||
} from '@/utils/auth'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseUrl: uni.getStorageSync('base_url'),
|
||||
// token: getToken()
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
// console.log(this.token)
|
||||
// uni.request({
|
||||
// url: this.baseUrl + '/ipc',
|
||||
// method: 'POST',
|
||||
// header: {
|
||||
// Authorization: `Bearer ` + this.token,
|
||||
// },
|
||||
// success(response) {
|
||||
// console.log(response.data);
|
||||
// },
|
||||
// fail(error) {
|
||||
// console.error(error);
|
||||
// },
|
||||
// });
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
</style>
|
||||
Reference in New Issue
Block a user