Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
swx_weapp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2022-10-18 16:14:54 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
30f2ea939c9eb5b3f038ec096996dfe46e5ce11c
30f2ea93
1 parent
7b1c6253
fix
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
src/pages/createActivity/index.vue
src/pages/index/index.vue
src/utils/request.js
src/pages/createActivity/index.vue
View file @
30f2ea9
...
...
@@ -698,7 +698,7 @@ export default {
org_type_columns: []
}
},
//
mixins: [mixin.init],
mixins: [mixin.init],
// onLoad (options) {
//options.参数名就可以取到
// if (options.type === 'edit') {
...
...
src/pages/index/index.vue
View file @
30f2ea9
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-18 14:
28:15
* @LastEditTime: 2022-10-18 14:
44:50
* @FilePath: /swx/src/pages/index/index.vue
* @Description: 首页
-->
...
...
@@ -30,7 +30,6 @@ import Taro from '@tarojs/taro'
import { ref, onMounted } from 'vue';
import activityCard from '@/components/activity-card.vue'
import navbar from '@/components/navbar.vue'
import Taro from '@tarojs/taro'
onMounted(async () => {
})
...
...
src/utils/request.js
View file @
30f2ea9
/*
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-10-1
7 09:31:22
* @LastEditTime: 2022-10-1
8 15:02:01
* @FilePath: /swx/src/utils/request.js
* @Description: 简单axios封装,后续按实际处理
*/
...
...
@@ -36,7 +36,7 @@ service.interceptors.request.use(
* POST PHP需要修改数据格式
* 序列化POST请求时需要屏蔽上传相关接口,上传相关接口序列化后报错
*/
config
.
data
=
config
.
method
===
'post'
&&
!
strExist
([
'a=upload'
,
'upload.qiniup.com'
],
config
.
url
)
?
qs
.
stringify
(
config
.
data
)
:
config
.
data
;
//
config.data = config.method === 'post' && !strExist(['a=upload', 'upload.qiniup.com'], config.url) ? qs.stringify(config.data) : config.data;
return
config
},
error
=>
{
...
...
Please
register
or
login
to post a comment