Vue obtains router dynamically from server

Preparatory work Provide interface Rewrite route Provide interface laravel provides the interface. It's in minutes, isn't it api.php Route::group(['prefix'=>'admin','middleware'=>'format'], function (){ Route::get('routes','Manager\RouterController@getRouter'); }); Then write a getRouter method like RouterController pu ...

Added by Ayon on Tue, 31 Mar 2020 19:29:41 +0300

Eight queens question display code

1. introduction Eight empresses estimate everybody knows what problem is, did not elaborate (do not know Baidu) The display version mainly depends on vue, so the display and internal logic are separated when writing code, so it's no more difficult than the non display version. The only advantage is that you can try it first, which is more intui ...

Added by mmponline on Tue, 31 Mar 2020 15:41:01 +0300

Are you hungry? Learning (1) basic introduction

Hungry? Study (1) Project preparation Project construction Install vue scaffold npm install -g vue-cli Project initialization Vue init webpack < project name > Others omitted: webpack configuration needs to be recorded separately for learning stylus Learn to use stylus in this project Install stylus and in ...

Added by homerjsimpson on Mon, 30 Mar 2020 22:14:09 +0300

vue interceptor implements unified token and is compatible with IE9 verification

In the project, vue is used to build the front-end page, and axios requests the back-end api interface to complete the data interaction. If the password token is written in each interface, it is not only a small physical work, but also inflexible. Here we share the use of vue's own interceptor to add token to the header of each request, and it ...

Added by Seamless on Mon, 30 Mar 2020 18:25:36 +0300

Easy to understand Vue router

<head> <meta charset="UTF-8"> <title>vuejs Course</title> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-styl ...

Added by hazy on Sat, 28 Mar 2020 17:53:05 +0200

Use sass in vue2 and configure global sass style files

If the style file sass is used in vue, if each.Vue file introduces this style, it will inevitably cause duplication and redundancy of the style after the file is built out. If a scss file is introduced globally in main.js, and no error is defined in referencing the reference variable in other components or pages, other styles c ...

Added by bogu on Tue, 24 Mar 2020 18:05:30 +0200

Front end notes Vue project day 2 8

5. Revise books 5.1 define an identifier, mainly to control that the id of the current edited book cannot be modified in the editing state, that is, the input box of the current controlled book number is disabled in the editing state 5.2 binding to book number by attribute. If the attribute ...

Added by putraaridana on Tue, 17 Mar 2020 18:04:44 +0200

Simple left slip deletion of applet based on vue

How to implement simple left slip deletion in applet Syntax based on vue touchStart touchMove touchEnd This is the first effect. We need to hide the delete button z-index: -1 Then set the z-index of the item to 2 z-index: 1 After hiding, write the sliding function. First, listen to the starting ...

Added by A2xA on Tue, 17 Mar 2020 16:36:48 +0200

Website front desk - login and user center

Chapter 6 website front desk - login and user center Learning objectives: Complete the user registration function Complete the user login function and master the use of JS cookies Complete the function of wechat code scanning and login Complete the nesting layout of user center and master the use of ...

Added by mdojet on Thu, 12 Mar 2020 11:42:48 +0200

Analyzing the mount principle of vue from the source code

brief introduction Before we talk about the mount principle, we will introduce four different versions of vue It can be seen that there are two types of build versions, one is the full version and the other is the runtime version, excluding environment problems. What's the difference between the two? ...

Added by OpSiS on Wed, 11 Mar 2020 06:33:20 +0200