开发者

Multiple URLs in proxy

开发者 https://www.devze.com 2023-03-23 15:30 出处:网络
How can I use multiple URLs in a proxy in E开发者_StackOverflowxtjs 4? Proxy:{ url:\'?\' } Thanksstorename.getProxy().url=\'your-url\'in your store:

How can I use multiple URLs in a proxy in E开发者_StackOverflowxtjs 4?

Proxy:{
        url:'?'
      }

Thanks


storename.getProxy().url='your-url'


in your store:

proxy: {        
      type: 'ajax',
      api: {
       read: '/controller/read',
       update: '/controller/update',
       create: '/controller/create'
     },
    ....
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号