GithubHelp home page GithubHelp logo

weizhanzhan / vue3-ts-template-h5 Goto Github PK

View Code? Open in Web Editor NEW
438.0 4.0 108.0 25.64 MB

🍰🤡 Vue3.0 + Typescript + Sass + Vant 移动端 ,附属微信朋友圈demo 。访问weizhan.site

Home Page: https://vue3-ts-template-h5.vercel.app

JavaScript 1.87% HTML 0.55% Vue 27.86% TypeScript 46.82% SCSS 0.91% Less 22.01%
vue3 typescript vant html5 webapp css tsconfig vue vue3-demo vue3-typescript

vue3-ts-template-h5's People

Contributors

lvfangren avatar weizhanzhan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vue3-ts-template-h5's Issues

关于vuex的替代方案

都说provide/inject可以替代vuex,但是provide/inject貌似只能在组件的setup选项内使用吧?我如果想在其他地方使用就不行了。举个很常见的业务场景:
axios请求拦截器里给所有请求在请求头里带上token,用vuex我可以在拦截器逻辑所在的js文件里引用store。但是provide/inject在这里就用不了了吧

npm run serve 报错

TypeError: compilation.templatesPlugin is not a function

感觉npm版本控制越来越差了。。

提个文档上看到的问题

image

在axios配置上,接口返回的是response.data。从配置上判断,response.data的数据格式应该是

{
  code:200,
  msg:xxx,
  [具体数据的key]: 具体数据
}

image
在api文件里,具体接口定义的返回值类型是 ResourceOption,ResourceOption与response.data类型明显不一致,ResourceOption应该是具体数据的类型

不知道我又没有理解错

help me

nav 1 nav 2 nav 3 subnav 1 待办事项 wdgs option3 option4 subnav 2 option5 option6 option7 option8 subnav 3 option9 option10 option11 option12 Home List App Content
<script lang="ts"> import { reactive, toRefs} from 'vue' import { useRouter } from 'vue-router' export default { setup(){ const router = useRouter(); const state = reactive({ selectedKeys1: ['2'], selectedKeys2: ['1'], collapsed: false, openKeys: ['sub1'], }) const goUrl = (path: string) => { router.push(path); } return{ ...toRefs(state), goUrl } } }; </script> <style> </style>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.