Vue

Async and await are used in vue to implement axios synchronous requests (detailed code flow)

question First of all, I declare that this blog is only suitable for novice viewing. The understanding of [async] and await to implement axios synchronous request is only suitable for application-level learning. There is no async and await to implement the underlying code and logic explanation of axios synchronous request implementation. Let me introduce the …

Async and await are used in vue to implement axios synchronous requests (detailed code flow) Read More »

An introduction to the understanding and use of mixins in vue

mixins Vue provides a mixing mechanism – mixins (mixing), which is used to achieve the reuse of component content more efficiently. Mixins are a very flexible way to distribute reusable functionality in Vue components. Mixed objects can contain arbitrary component options. When a component uses a mixin, all options for the mixin will be mixed …

An introduction to the understanding and use of mixins in vue Read More »

An interview question from a big guy who has worked in the front-end for 5 years, see how many you can answer correctly

JS interview questions What is the output of the following code? function sayHi() { console.log(name) console.log(age) var name = 'Lydia' let age = 21 } sayHi() Undefined error report (var has variable promotion, let does not, so an error will be reported when using let, and it is not defined before use) What does the …

An interview question from a big guy who has worked in the front-end for 5 years, see how many you can answer correctly Read More »

ant-design-vue custom icon, associated with Alibaba font icon library, the project already has an icon, the newly downloaded icon should be renamed and saved

Some time ago, I introduced the icon of the Alibaba font icon library into the project, and went through the steps, but it has been unsuccessful. It just happened that the needs were changed, and I didn’t need to use an icon, so I was temporarily stranded and didn’t care about this. Today, there is …

ant-design-vue custom icon, associated with Alibaba font icon library, the project already has an icon, the newly downloaded icon should be renamed and saved Read More »

After the backend allows cross-domain, the front-end access still has cross-domain problems

Problem Description: When uploading files, since there are multiple back-end servers, before uploading the address, an interface on the back-end will be called to obtain the actual upload address. However, the upload address obtained each time is different, and it is impractical to use ngnix to solve cross-domain problems, so the backend enables cors and …

After the backend allows cross-domain, the front-end access still has cross-domain problems Read More »

[Vue] Happy Learning Part 4, Component Access and Slot Use

Welcome to happy learning Vue, component access and the use of [slots] , come and learn 🏄🏼 Article directory elicit parent access child $children parent access child $refs child access parent $parent Access and component $root slot slot elicit Sometimes we need the parent component to directly access the child component, the child component to …

[Vue] Happy Learning Part 4, Component Access and Slot Use Read More »

[vue-treeselect+el-table] When the amount of data is large, lazy loading, data echo, input box binding value, no arrow in front of the last node, etc.

vue-treeselect official website, poke I recently made a function, el-table can edit the table, one column is the treeselect drop-down tree, the interface data is more than 900 kb, and the request took about 400 milliseconds. It is reasonable to say that the data is not very large, but Rendering is very slow. When you …

[vue-treeselect+el-table] When the amount of data is large, lazy loading, data echo, input box binding value, no arrow in front of the last node, etc. Read More »

[Solved] TypeError Cannot read property ‘xxx’ of undefined error analysis

This sentence literally translates to: TypeError: Cannot read property ‘xxx’ of undefined First go to see if the attribute ‘xxx’ is defined. If it is not defined, define it in the data or method according to the actual needs. If it is defined in data, first check if your data is written correctly. I mistakenly …

[Solved] TypeError Cannot read property ‘xxx’ of undefined error analysis Read More »

Vue scaffolding installation and creation, full illustration

1. What is [vue scaffolding] Tools for creating Vue environments (scaffolding) 2. Installation Install node.js Have npm (Optional) Switch the installation source npm install nrm -g nrm use taobao  // Switch the installation source to Taobao Installation npm install -g @vue /cli // install scaffolding 3. Create Switch to the root directory cd/ Created a …

Vue scaffolding installation and creation, full illustration Read More »